*,
*::before,
*::after {
    box-sizing: border-box;
}

.auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0b1a30 0%, #1e3a63 100%);
    position: relative;
    overflow-x: hidden;
}

.auth-header-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.auth-lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.auth-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 120px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.auth-lang-dropdown.is-open {
    display: flex;
}

.auth-lang-dropdown a {
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.auth-lang-dropdown a:hover {
    background: #f5f7fa;
}

.auth-lang-dropdown a svg {
    width: 20px;
    height: auto;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    box-sizing: border-box;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 30px;
}
.auth-logo img {
    max-height: 40px;
    width: auto;
}
.auth-logo span {
    font-size: 24px;
    font-weight: 700;
    color: #2b3648;
    text-decoration: none;
}

.auth-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
}

.auth-form-group {
    margin-bottom: 16px;
    text-align: left;
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #374151;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.auth-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-password-toggle:hover {
    color: #4b5563;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    cursor: pointer;
}

.auth-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.auth-btn-primary {
    width: 100%;
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    margin-bottom: 16px;
}

.auth-btn-primary:hover {
    background: #2563eb;
}

.auth-social-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: #374151;
}

.auth-btn-social:hover {
    background: #e5e7eb;
}

.auth-btn-social img, .auth-btn-social svg {
    width: 20px;
    height: 20px;
}

.auth-footer {
    font-size: 14px;
    color: #6b7280;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
}
.auth-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.auth-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.auth-alert-danger ul {
    margin: 0;
    padding-left: 20px;
}
.auth-alert-danger li {
    margin: 4px 0;
}
.auth-field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.cf-turnstile {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }
}