:root {
    --bg-primary: #f4f7fe;
    --bg-secondary: #ffffff;
    --text-primary: #519A66;
    --text-secondary: #A4B0A7;
    --accent: #519A66;
    --accent-hover: #237227;
    --border-color: #E9F2ED;
    --success: #05cd99;
    --warning: #ffb547;
    --danger: #ee5d50;
    --card-shadow: 0px 18px 40px rgba(112, 144, 176, 0.12);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: auto;
}

.auth-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    overflow: hidden;
    min-height: 700px;
}

.auth-visual {
    flex: 1;
    background: linear-gradient(135deg, var(--accent) 0%, #519A66 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Bubble Animation */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rise var(--duration) infinite ease-in;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    80% {
        opacity: 0.5;
    }
    100% {
        bottom: 100%;
        transform: translateX(var(--move-x));
        opacity: 0;
    }
}

.visual-content {
    position: relative;
    z-index: 1;
}

.auth-visual i {
    font-size: 120px;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

.auth-visual h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.auth-visual p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

.auth-content {
    flex: 1.2;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
}

.auth-header {
    margin-bottom: 35px;
}

.auth-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 22px;
    position: relative;
    flex: 1;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    margin-left: 4px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    color: var(--text-secondary);
    font-size: 20px;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
    transition: var(--transition);
}

.form-control, .country-select {
    width: 100%;
    padding: 14px 18px 14px 52px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    background-color: #fff;
    appearance: none;
}

.form-control::placeholder {
    color: #b0bbd5;
}

.form-control:focus, .country-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.08);
}

.form-control:focus ~ .input-icon {
    color: var(--accent);
}

.password-toggle {
    position: absolute;
    right: 18px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 20px;
    display: flex;
    align-items: center;
    z-index: 2;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--accent);
}

/* Password Requirements */
.password-requirements {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8faff;
    border: 1px solid #eef2f8;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    transition: var(--transition);
}

.password-requirements.hide {
    display: none;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.requirement-icon {
    font-size: 16px;
}

.requirement-item.met {
    color: var(--success);
}

.password-match-info {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
}

.password-match-info.match { color: var(--success); }
.password-match-info.no-match { color: var(--danger); }

/* Checkbox */
.terms-checkbox {
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.terms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    accent-color: var(--accent);
    margin-top: 2px;
}

.terms-checkbox a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Button */
.auth-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(67, 24, 255, 0.15);
}

.auth-btn:hover:not(:disabled) {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 24, 255, 0.25);
}

.auth-btn:disabled {
    background-color: #e0e5f2;
    color: #a3aed0;
    cursor: not-allowed;
    box-shadow: none;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.alert-danger {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    color: var(--danger);
}

.alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 18, 45, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.alert-box {
    background: white;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUpAlert 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpAlert {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOutAlert {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
}

.alert-overlay.fade-out .alert-box {
    animation: fadeOutAlert 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.alert-overlay.fade-out {
    animation: fadeOutOverlay 0.4s ease-out forwards;
}

@keyframes fadeOutOverlay {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.alert-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: zoomInIcon 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomInIcon {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.alert-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.alert-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.alert-progress {
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.alert-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    animation: progressFill 1.5s linear forwards;
}

@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .auth-card {
        flex-direction: column;
        min-height: auto;
    }
    .auth-visual {
        padding: 40px;
    }
    .auth-content {
        padding: 40px;
    }
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .auth-content {
        padding: 30px 20px;
    }
    .password-requirements {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   SOCIAL LOGIN STYLES
   auth.css faylının sonuna əlavə edin
   ===================================================== */

/* ─── Social Button Group ─── */
.social-login-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #344054;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.social-btn:hover {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.social-btn__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* ── Google ── */
.social-btn--google:hover {
    border-color: #4285F4;
    background: #f8faff;
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.15);
}

/* ── Facebook ── */
.social-btn--facebook:hover {
    border-color: #1877F2;
    background: #f0f5ff;
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.15);
}

/* ── Apple ── */
.social-btn--apple {
    color: #1d1d1f;
}

.social-btn--apple:hover {
    border-color: #1d1d1f;
    background: #f5f5f7;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ── Loading state ── */
.social-btn--loading {
    pointer-events: none;
    opacity: 0.7;
}

.social-btn--loading span {
    opacity: 0;
}

.social-btn--loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: socialSpinner 0.6s linear infinite;
}

@keyframes socialSpinner {
    to { transform: rotate(360deg); }
}

/* ─── Divider ─── */
.social-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-divider span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    text-transform: lowercase;
}

/* ─── Responsive ─── */
@media (max-width: 576px) {
    .social-login-group {
        gap: 10px;
    }

    .social-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}