﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(139, 0, 0, 0.15) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(139, 0, 0, 0.10) 0%, transparent 50%);
    overflow: hidden;
}

/* Subtle animated particles */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(139, 0, 0, 0.4);
    border-radius: 50%;
    animation: float 25s linear infinite;
    bottom: -10px;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Card */
.login-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: 900px;
    min-height: 560px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

/* Left panel — toned down, more charcoal-dark than pure red */
.brand-panel {
    width: 45%;
    background: linear-gradient(160deg, #2d1515 0%, #4a1010 40%, #6b1a1a 100%);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

    /* Subtle geometric overlay */
    .brand-panel::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.05);
    }

    .brand-panel::after {
        content: '';
        position: absolute;
        bottom: -60px;
        left: -60px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.04);
    }

/* Logo */
.brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    /* White tint so logo reads on dark bg */
    filter: brightness(0) invert(1);
}

.brand-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0 30px;
}

.brand-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}

    .brand-title span {
        color: #E8A87C;
        font-style: italic;
    }

.brand-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    line-height: 1.7;
}

.brand-footer {
    display: flex;
    gap: 24px;
}

.brand-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .brand-badge i {
        font-size: 11px;
        color: #E8A87C;
    }

/* Right panel — clean off-white */
.login-panel {
    width: 55%;
    background: #FAFAF8;
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.greeting-text {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8B0000;
    display: block;
    margin-bottom: 8px;
}

.login-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 36px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper i {
        position: absolute;
        left: 14px;
        color: #8B0000;
        font-size: 14px;
        opacity: 0.7;
    }

    .input-wrapper input {
        width: 100%;
        padding: 13px 14px 13px 42px;
        border: 1.5px solid #E8E4E0;
        border-radius: 10px;
        font-size: 14px;
        font-family: 'Plus Jakarta Sans', sans-serif;
        background: #fff;
        color: #1a1a1a;
        transition: border-color 0.2s, box-shadow 0.2s;
        outline: none;
    }

        .input-wrapper input:focus {
            border-color: #8B0000;
            box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.08);
        }

        .input-wrapper input::placeholder {
            color: #bbb;
        }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 13px;
    color: #666;
}

    .form-options label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .form-options input[type="checkbox"] {
        accent-color: #8B0000;
    }

.forgot-link {
    color: #8B0000;
    text-decoration: none;
    font-weight: 600;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.login-button {
    width: 100%;
    padding: 14px;
    background: #8B0000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

    .login-button:hover {
        background: #6b0000;
        box-shadow: 0 8px 24px rgba(139, 0, 0, 0.35);
        transform: translateY(-1px);
    }

    .login-button:active {
        transform: translateY(0);
    }

.divider {
    margin-top: 36px;
    border-top: 1px dashed #E0DDD8;
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.validation-message {
    color: #c0392b;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        width: 95%;
    }

    .brand-panel {
        width: 100%;
        padding: 32px 28px;
        min-height: 220px;
    }

    .login-panel {
        width: 100%;
        padding: 36px 28px;
    }

    .brand-title {
        font-size: 30px;
    }
}
