﻿/* =========================================================
   LOGIN THEME (PURPLE PRIMARY)
========================================================= */

:root {
    --brand-primary: #956EEA; /* Main Purple */
    --brand-dark: #7D5AD9; /* Dark Purple */
    --brand-focus: #B79BFF; /* Glow */
    --brand-accent: #EA9466; /* Orange accent */
    --text-dark: #111827;
    --text-muted: #6b7280;
    --bg-soft: #f8fafc;
}

/* ========== RESET ========== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial;
    background: #ffffff;
    color: var(--text-dark);
}

/* ========== LAYOUT ========== */
.page {
    display: flex;
    min-height: 100vh;
}

/* ========== LEFT ========== */
.left {
    width: 55%;
    background: var(--bg-soft);
    padding: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .left::after {
        content: "";
        position: absolute;
        inset: 0;
        background: url("https://upload.wikimedia.org/wikipedia/commons/thumb/8/80/World_map_-_low_resolution.svg/2000px-World_map_-_low_resolution.svg.png") center bottom/1100px no-repeat;
        opacity: .06;
    }

.hero {
    position: relative;
    z-index: 2;
}

    .hero h1 {
        font-size: 48px;
        font-weight: 700;
        line-height: 1.15;
        margin-bottom: 28px;
    }

.bar {
    width: 140px;
    height: 5px;
    background: linear-gradient(90deg,var(--brand-primary),var(--brand-accent));
    border-radius: 10px;
    margin-bottom: 40px;
}

/* Features */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 50px;
}

    .features-list li {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 18px;
        font-size: 18px;
        color: #374151;
    }

.feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(149,110,234,.15);
    color: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.brand-footer {
    background: #eef6ff;
    padding: 22px;
    border-radius: 14px;
}

    .brand-footer h4 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 8px;
        font-size: 18px;
    }

    .brand-footer p {
        margin: 0;
        line-height: 1.5;
        color: #334155;
    }

/* ========== RIGHT ========== */
.right {
    width: 45%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    position: relative;
}

    .right::before {
        content: none;
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right,rgba(149,110,234,.12),transparent 60%);
    }

.card {
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

    .logo img {
        height: 85px;
    }

h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
}

/* ========== INPUTS ========== */
.field {
    position: relative;
    margin-bottom: 18px;
}

.input {
    width: 100%;
    padding: 16px 46px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 15px;
    transition: .25s;
}

    .input:focus {
        outline: none;
        background: #fff;
        border-color: var(--brand-focus);
        box-shadow: 0 0 0 6px rgba(149,110,234,.30);
    }

    .input.error {
        border-color: var(--brand-primary);
        background: #f5f0ff;
    }

.icon, .toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: .6;
}

.icon {
    left: 14px;
}

.toggle {
    right: 14px;
    cursor: pointer;
}

/* Caps */
#caps {
    font-size: 13px;
    color: var(--brand-primary);
    margin: -8px 0 14px;
    display: none;
}

/* Remember */
.row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 26px;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .remember input {
        accent-color: var(--brand-primary);
    }

/* ========== ERROR BOX ========== */
.login-error {
    background: #f5f0ff;
    border: 1px solid #b79bff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #5b3ec8;
    display: flex;
    gap: 10px;
}

/* ========== BUTTON ========== */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(180deg,var(--brand-primary),var(--brand-dark));
    box-shadow: 0 12px 30px rgba(149,110,234,.45), inset 0 -2px 0 rgba(0,0,0,.15);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
}

    .btn:hover {
        background: linear-gradient(180deg,#a88cff,#7d5ad9);
        transform: translateY(-1px);
    }

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.btn.loading .spinner {
    display: block;
}

.btn.loading span {
    display: none;
}
.footer-text {
    text-align: center;
    margin-top: 40px;
    color: var(--gray-color);
    font-size: 0.9rem;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Shake */
@keyframes shake {
    25% {
        transform: translateX(-6px);
    }

    50% {
        transform: translateX(6px);
    }
}

.shake {
    animation: shake .4s;
}

/* Signup */
.signup {
    text-align: center;
    margin-top: 24px;
}

    .signup a {
        font-weight: 700;
        color: var(--text-dark);
        text-decoration: none;
    }

/* ========== MOBILE ========== */
@media(max-width:900px) {
    .left {
        display: none;
    }

    .right {
        width: 100%;
    }
}
