* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif;
    background: #f3f2ef;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.08);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 21px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: rgba(0,0,0,.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-link:hover {
    color: rgba(0,0,0,.9);
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.08);
    width: 100%;
    max-width: 400px;
    padding: 24px;
}

.welcome-text {
    font-size: 32px;
    font-weight: 300;
    color: rgba(0,0,0,.9);
    margin-bottom: 8px;
    line-height: 1.25;
}

.tagline {
    font-size: 14px;
    color: rgba(0,0,0,.6);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0,0,0,.9);
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    height: 52px;
    padding: 0 12px;
    font-size: 16px;
    border: 1px solid rgba(0,0,0,.6);
    border-radius: 4px;
    transition: all 0.2s;
    font-family: inherit;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #0a66c2;
    border-width: 2px;
    padding: 0 11px;
}

.form-input.error {
    border-color: #cc1016;
}

.error-message {
    color: #cc1016;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.forgot-password {
    display: block;
    color: #0a66c2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    transition: text-decoration 0.2s;
}

.forgot-password:hover {
    text-decoration: underline;
}

.button-primary {
    width: 100%;
    height: 52px;
    background: #0a66c2;
    color: #ffffff;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 24px;
    font-family: inherit;
}

.button-primary:hover {
    background: #004182;
}

.button-primary:active {
    transform: scale(0.98);
}

.button-primary:disabled {
    background: rgba(0,0,0,.08);
    color: rgba(0,0,0,.3);
    cursor: not-allowed;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,.15);
}

.divider span {
    padding: 0 12px;
    color: rgba(0,0,0,.6);
    font-size: 14px;
}

.button-google {
    width: 100%;
    height: 52px;
    background: #ffffff;
    color: rgba(0,0,0,.6);
    border: 1px solid rgba(0,0,0,.6);
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.button-google:hover {
    background: rgba(0,0,0,.08);
    border-color: rgba(0,0,0,.8);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.signup-text {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: rgba(0,0,0,.6);
}

.signup-link {
    color: #0a66c2;
    text-decoration: none;
    font-weight: 600;
}

.signup-link:hover {
    text-decoration: underline;
}

.footer {
    background: #ffffff;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,.08);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-bottom: 12px;
}

.footer-link {
    color: rgba(0,0,0,.6);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #0a66c2;
    text-decoration: underline;
}

.copyright {
    color: rgba(0,0,0,.6);
    font-size: 12px;
}

.user-email-display {
    background: rgba(10,102,194,.08);
    border: 1px solid rgba(10,102,194,.2);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-email-text {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0,0,0,.9);
}

.change-link {
    color: #0a66c2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.change-link:hover {
    text-decoration: underline;
}

.loading-spinner {
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.button-primary.loading .default-text {
    display: none;
}

.button-primary.loading .loading-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-text {
    display: none;
}

/* CDR Warning */
.cdr-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #cc1016 0%, #a00020 100%);
    color: white;
    padding: 16px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.cdr-warning strong {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.cdr-warning small {
    font-size: 12px;
    opacity: 0.9;
}

.cdr-close {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: white;
    color: #cc1016;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
}

.cdr-close:hover {
    background: #f5f5f5;
}

body.cdr-warning-visible {
    padding-top: 70px;
}

@media (max-width: 600px) {
    .navbar-content {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    .login-container {
        padding: 20px;
    }

    .welcome-text {
        font-size: 24px;
    }
}
