/* Microsoft 365 Login Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f3f2f1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: white;
    padding: 44px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.logo-section {
    margin-bottom: 24px;
}

.microsoft-logo {
    width: 108px;
    height: 24px;
}

.sign-in-section {
    min-height: 320px;
}

.title {
    font-size: 24px;
    font-weight: 600;
    color: #1B1A19;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #1B1A19;
    margin-bottom: 8px;
}

.stay-signed-desc {
    font-size: 15px;
    color: #323130;
    margin-bottom: 24px;
}

.identity-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 0;
}

.back-button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    color: #605e5c;
    transition: color 0.1s;
}

.back-button:hover {
    color: #323130;
}

#display-email {
    font-size: 15px;
    color: #323130;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #323130;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 15px;
    border: 1px solid #8a8886;
    background-color: #fff;
    outline: none;
    transition: border-color 0.15s ease;
    font-family: 'Segoe UI', sans-serif;
}

.form-input:hover {
    border-color: #323130;
}

.form-input:focus {
    border-color: #0078d4;
    border-width: 2px;
    padding: 7px 11px;
}

.form-input::placeholder {
    color: #605e5c;
}

.error-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background-color: #fde7e9;
    border: 1px solid #c50f1f;
    margin-bottom: 16px;
    font-size: 13px;
    color: #a4262c;
}

.error-icon {
    flex-shrink: 0;
}

.form-footer {
    margin-bottom: 24px;
}

.no-account,
.cant-access,
.forgot-password {
    font-size: 13px;
    margin-bottom: 8px;
}

.no-account a,
.cant-access a,
.forgot-password a {
    color: #0067b8;
    text-decoration: none;
}

.no-account a:hover,
.cant-access a:hover,
.forgot-password a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.form-actions-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-primary,
.btn-secondary {
    padding: 8px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-family: 'Segoe UI', sans-serif;
    min-width: 108px;
}

.btn-primary {
    background-color: #0067b8;
    color: white;
}

.btn-primary:hover {
    background-color: #005a9e;
}

.btn-primary:active {
    background-color: #004578;
}

.btn-primary:disabled {
    background-color: #f3f2f1;
    color: #a19f9d;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: transparent;
    color: #0067b8;
    border: 1px solid #8a8886;
}

.btn-secondary:hover {
    background-color: #f3f2f1;
}

.btn-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.divider-line {
    height: 1px;
    background-color: #edebe9;
    margin: 28px 0 24px;
}

.sign-in-options {
    text-align: center;
}

.sign-in-option {
    color: #0067b8;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    padding: 4px 0;
}

.sign-in-option:hover {
    text-decoration: underline;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.login-footer a {
    color: #605e5c;
    text-decoration: none;
    font-size: 11px;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 24px;
    }
    
    .title {
        font-size: 20px;
    }

    .form-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
