﻿/* ===== RESET ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    overflow-x: hidden;
}

/* ===== LAYOUT ===== */
.container-main {
    display: flex;
    min-height: 100vh;
}

/* ===== LEFT PANEL ===== */
.left-panel {
    flex: 1;
    padding: 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at 20% 30%, #3b82f6, transparent 40%), radial-gradient(circle at 80% 70%, #6366f1, transparent 40%);
}

    .left-panel h1 {
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .left-panel p {
        color: #cbd5f5;
        font-size: 16px;
    }

/* ===== FEATURE TAGS ===== */
.feature {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-modern {
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* ===== RIGHT PANEL ===== */
.right-panel {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== CARD ===== */
.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}

/* ===== LOGO ===== */
.brand-logo {
    width: 210px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: 20px;
}

/* ===== TEXT ===== */
.auth-card h2 {
    text-align: center;
    margin-bottom: 5px;
}

.auth-card p {
    text-align: center;
    color: #cbd5f5;
    margin-bottom: 25px;
}

/* ===== INPUT ===== */
input, select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.1);
    color: white;
}

    input::placeholder {
        color: #cbd5f5;
    }

/* ===== BUTTON ===== */
.btn-primary-modern {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* ===== LINKS ===== */
.links {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
}

    .links a {
        color: #cbd5f5;
        text-decoration: none;
    }

        .links a:hover {
            text-decoration: underline;
        }

/* ===== ALERTS ===== */
.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-success {
    background: #16a34a;
    color: white;
}

.alert-danger {
    background: #dc2626;
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {

    .container-main {
        flex-direction: column;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }

    .auth-card {
        margin: auto;
    }
}

#pwdRules span {
    padding: 3px 6px;
    border-radius: 6px;
    transition: 0.2s;
}

/* ===== TOAST ===== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    margin-bottom: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: #16a34a;
}

.toast-error {
    background: #dc2626;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.password-rules-box {
    margin-top: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.35);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    font-size: 13px;
    color: #6b7280;
}

    .password-rules-box .rule-item {
        display: flex;
        align-items: center;
        gap: 8px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .password-rules-box .rule-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #9ca3af;
        flex: 0 0 auto;
    }

    .password-rules-box .rule-item.valid {
        color: #15803d;
        font-weight: 600;
    }

        .password-rules-box .rule-item.valid .rule-dot {
            background: #22c55e;
        }

    .password-rules-box .rule-item.invalid {
        color: #dc2626;
    }

        .password-rules-box .rule-item.invalid .rule-dot {
            background: #ef4444;
        }

@media (max-width: 480px) {
    .password-rules-box {
        grid-template-columns: 1fr;
    }
}
/* ===== SELECT / COUNTRY DROPDOWN FIX ===== */

select {
    color: white;
    cursor: pointer;
}

    /* Dropdown items shown by the browser */
    select option {
        background-color: white !important;
        color: #111827 !important;
    }
