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

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.header {
    width: 100%;
    max-width: 450px;
    padding: 40px 0 30px;
    text-align: center;
}

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

.container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    margin-bottom: 20px;
}

.form-title {
    font-size: 28px;
    font-weight: 300;
    color: #2c2e2f;
    margin-bottom: 30px;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 13px;
    color: #2c2e2f;
    margin-bottom: 8px;
    font-weight: 400;
}

.input-field {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    border: 1px solid #9da3a6;
    border-radius: 4px;
    transition: all 0.2s;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: #0070ba;
    box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.1);
}

.input-field.error {
    border-color: #d60028;
}

.error-message {
    color: #d60028;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 14px;
    color: #2c2e2f;
    cursor: pointer;
}

.button-primary {
    width: 100%;
    height: 48px;
    background: #0070ba;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.button-primary:hover {
    background: #005ea6;
}

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

.button-primary:disabled {
    background: #cbd2d6;
    cursor: not-allowed;
}

.button-secondary {
    width: 100%;
    height: 48px;
    background: #ffffff;
    color: #0070ba;
    border: 1px solid #0070ba;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 16px;
}

.button-secondary:hover {
    background: #f5f7fa;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #cbd2d6;
}

.divider span {
    background: #ffffff;
    padding: 0 16px;
    color: #687173;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.link {
    color: #0070ba;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

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

.footer {
    text-align: center;
    max-width: 450px;
    padding: 20px;
}

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

.footer-links a {
    color: #687173;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.language-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #687173;
    font-size: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.language-selector:hover {
    background: rgba(0, 0, 0, 0.05);
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0070ba;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    display: none;
}

.button-primary.loading .loading-text {
    display: inline;
}

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

.security-notice {
    background: #f7f9fa;
    border-left: 3px solid #0070ba;
    padding: 16px;
    margin: 20px 0;
    border-radius: 4px;
}

.security-notice-title {
    font-weight: 600;
    color: #2c2e2f;
    margin-bottom: 8px;
    font-size: 14px;
}

.security-notice-text {
    color: #687173;
    font-size: 13px;
    line-height: 1.5;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0070ba;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
}

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

.user-email {
    font-size: 16px;
    color: #2c2e2f;
    font-weight: 500;
    margin-bottom: 24px;
    padding: 12px;
    background: #f7f9fa;
    border-radius: 4px;
    text-align: center;
}

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

.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: #d60028;
    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: 80px;
}

@media (max-width: 600px) {
    .container {
        padding: 24px;
    }

    .header {
        padding: 20px 0 20px;
    }

    .form-title {
        font-size: 24px;
    }
}
