@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6d4aff;
    --primary-dark: #5636db;
    --dark: #15151c;
    --text: #24242c;
    --muted: #73737d;
    --border: #e7e5ef;
    --light-bg: #f8f7fc;
    --white: #ffffff;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: 'DM Sans', sans-serif;
    background: #f8f7fc;
    color: var(--text);
}

body {
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

/* LEFT SIDE */

.login-left {
    position: relative;
    min-height: 100vh;
    padding: 48px 70px;
    background:
        radial-gradient(circle at 20% 20%, rgba(109, 74, 255, 0.12), transparent 30%),
        linear-gradient(135deg, #16131f 0%, #25203a 50%, #171420 100%);
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.login-left::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(109, 74, 255, 0.15);
    filter: blur(20px);
    bottom: -250px;
    left: -150px;
}

.login-left::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -120px;
    right: -120px;
}

.brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #8062ff, #5b37e8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    box-shadow: 0 12px 30px rgba(109, 74, 255, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 10px;
    color: #aaa4bb;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: auto 0;
    padding: 80px 0;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero-content h1 span {
    color: #a893ff;
}

.hero-content > p {
    max-width: 600px;
    color: #b9b4c8;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 45px;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: 0.25s ease;
}

.feature-card:hover {
    transform: translateX(5px);
    background: rgba(255,255,255,0.08);
}

.feature-icon {
    min-width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(124, 94, 255, 0.18);
    color: #a893ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-card p {
    font-size: 13px;
    color: #aaa4bb;
}

.left-footer {
    position: relative;
    z-index: 2;
    font-size: 13px;
    color: #8f899f;
}

/* RIGHT SIDE */

.login-right {
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-box {
    width: 100%;
    max-width: 460px;
}

.mobile-brand {
    display: none;
}

.login-header {
    margin-bottom: 35px;
}

.login-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #f1edff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 22px;
}

.login-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--muted);
    font-size: 15px;
}

.form-group {
    margin-bottom: 21px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 9px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #96929f;
    font-size: 17px;
}

.input-wrapper input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 18px 0 48px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: #fbfaff;
    transition: 0.2s ease;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(109, 74, 255, 0.09);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #8c8795;
    cursor: pointer;
    font-size: 17px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0 26px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #66616d;
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-button {
    width: 100%;
    height: 57px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #7655ff, #5a36e5);
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(92, 57, 232, 0.25);
    transition: 0.25s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(92, 57, 232, 0.32);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    min-height: 20px;
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
}

.form-message.error {
    color: #d8344f;
}

.form-message.success {
    color: #15985f;
}

.secure-note {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #898591;
    font-size: 13px;
}

.secure-note i {
    color: #38a169;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 35px 25px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 55px;
    }

    .mobile-brand .brand-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .mobile-brand .brand-name {
        font-size: 20px;
    }

    .mobile-brand .brand-subtitle {
        color: #8c8795;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 28px 20px;
    }

    .login-header h2 {
        font-size: 34px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 13px;
    }
}