.login .content-login {
    display: flex;
    justify-content: center;
}

.login .card-login {
    width: 400px;
}

/* Login buttons container */
.login .login-buttons-container {
    margin-top: 16px;
}

.login .submit-row {
    padding: 0.5em 0;
    margin: 0;
    text-align: center;
}

/* Base button styles */
.login .login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #3c4043;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
    padding: 0 16px;
    gap: 12px;
}

.login .login-button:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.login .login-button:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

.login .login-button:active {
    background-color: #e8e8e8;
}

/* Microsoft button specific styles */
.login .microsoft-button {
    border-color: #8c8c8c;
}

.login .microsoft-button:hover {
    background-color: #f0f0f0;
    border-color: #7a7a7a;
}

/* Google button specific styles */
.login .google-button {
    border-color: #dadce0;
}

.login .google-button:hover {
    background-color: #f8f9fa;
    border-color: #d2d3d4;
}

/* Provider logo styles */
.login .provider-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.login .button-text {
    flex: 1;
    text-align: center;
}

/* Form spacing */
.login #microsoft-login-form,
.login #google-login-form {
    margin: 0;
}

.login #google-login-form {
    margin-top: 8px;
}

/* Legacy support for old input-based button (deprecated) */
.login .submit-row input {
    display: inline-block;
    width: 100%;
    height: 35px;
    font-size: 14px;
}

.login #login-form {
    margin-top: 16px;
}

/* Message list */
ul.messagelist {
    margin-top: 0px !important;
}

/* Responsive design for mobile */
@media (max-width: 480px) {
    .login .card-login {
        width: 100%;
        max-width: 350px;
    }

    .login .login-button {
        font-size: 13px;
        height: 44px;
    }

    .login .provider-logo {
        width: 18px;
        height: 18px;
    }
}

/* Accessibility improvements */
.login .login-button:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* Keyboard navigation indicator */
.login .login-button:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}