* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100dvh;
    background: linear-gradient(90deg, #17d2c2 0%, #3d77ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

body::before {
    width: 220px;
    height: 220px;
    background: rgba(59, 130, 246, 0.28);
    top: 10px;
    left: 10px;
}

body::after {
    width: 260px;
    height: 260px;
    background: rgba(16, 185, 129, 0.18);
    bottom: 10px;
    right: 10px;
}

.container {
    position: relative;
    z-index: 2;
    /*width: min(1180px, 100%);*/
    min-width: 1250px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.08);
    /*border: 1px solid rgba(255,255,255,0.15);*/
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 25px 0px 25px 0px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.30);
}

.left-panel {
    background: rgba(255, 255, 255, 0.97);
    padding: 42px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 8px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f766e, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);
}

.brand-text h3 {
    font-size: 22px;
    color: #0f172a;
    line-height: 1.1;
}

.brand-text span {
    font-size: 11px;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-header {
    margin-bottom: 24px;
}

.form-header h1 {
    font-size: clamp(28px, 4vw, 35px);
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 10px;
}

.form-header p {
    color: #64748b;
    font-size: 14px;
    max-width: 460px;
    line-height: 1.7;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}

.input-box input {
    width: 100%;
    height: 52px;
    border: 1px solid rgb(37 99 235 / 36%);
    border-radius: 5px;
    padding: 0 16px;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: 0.3s ease;
}

.input-box input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 14px;
}

.remember input {
    accent-color: #2563eb;
}

.forgot {
    font-size: 14px;
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
}

.login-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.24);
}

.login-btn:hover {
    transform: translateY(-1px);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #94a3b8;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.secondary-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.secondary-btns button {
    height: 48px;
    border-radius: 12px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #0f172a;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

.secondary-btns button:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.footer-text {
    margin-top: 18px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.footer-text a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.right-panel {
    position: relative;
    padding: 42px 36px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
        radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 35%),
        linear-gradient(135deg, #0f172a, #0f766e);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-panel::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -40px;
    right: -40px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 12px;
    margin-bottom: 16px;
    width: fit-content;
    backdrop-filter: blur(10px);
}

.right-panel h2 {
    font-size: clamp(28px, 4vw, 32px);
    line-height: 1.2;
    margin-bottom: 14px;
    max-width: 480px;
}

.right-panel p {
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 24px;
}

.stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.stat-card {
    min-width: 135px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
}

.stat-card h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.stat-card span {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.illustration-card {
    width: 100%;
    max-width: 480px;
    border-radius: 22px;
    padding: 18px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.20);
}

.illustration-card svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 980px) {
    .container {
        grid-template-columns: 1fr;
    }

    .right-panel {
        order: -1;
    }

    .left-panel,
    .right-panel {
        padding: 30px 24px;
    }

    .secondary-btns {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 980px) {
    .illustration-card {
        display: none;
    }
}
@media (max-height: 760px) {
    body {
        padding: 10px;
    }

    .left-panel,
    .right-panel {
        padding: 50px 35px;
    }

    .form-header {
        margin-bottom: 18px;
    }

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

    .stats {
        margin-bottom: 16px;
    }

    .illustration-card {
        display: none;
    }
}

@media (max-height: 680px) {
    .container {
        grid-template-columns: 1fr;
    }

    .right-panel {
        order: -1;
    }

    .right-panel p {
        margin-bottom: 16px;
    }

    .stat-card {
        min-width: 120px;
        padding: 12px;
    }
}
/* TOAST CONTAINER */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* TOAST */
.toast {
    min-width: 280px;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: slideIn 0.4s ease, fadeOut 0.4s ease 3.5s forwards;
}

/* TYPES */
.toast.success {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.toast.error {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* ANIMATION */
@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(120%);
    }
}
