* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #7f1d1d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}


body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path fill="%23FFD700" d="M10,10 L20,10 L15,20 Z M30,30 L40,30 L35,40 Z M50,50 L60,50 L55,60 Z M70,70 L80,70 L75,80 Z M10,60 L20,60 L15,70 Z M60,10 L70,10 L65,20 Z"/><circle cx="85" cy="15" r="3" fill="%23FFD700"/><circle cx="15" cy="85" r="3" fill="%23FFD700"/><circle cx="50" cy="90" r="3" fill="%23FFD700"/></svg>');
    background-repeat: repeat;
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.login-card {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-wrap: wrap;
    backdrop-filter: blur(0px);
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #8b0000 0%, #dc2626 50%, #991b1b 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 2px, transparent 2px);
    background-size: 30px 30px;
    animation: shimmer 15s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-10%) translateY(-10%) rotate(0deg);
    }
    100% {
        transform: translateX(10%) translateY(10%) rotate(360deg);
    }
}

.login-left::after {
    content: '✦';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 100px;
    opacity: 0.1;
    color: #FFD700;
    font-family: serif;
}

.login-left h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.login-left h1 span {
    color: #FFD700;
    display: inline-block;
}

.login-left p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.prestige-badge {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.prestige-badge div {
    background: rgba(255,215,0,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255,215,0,0.3);
}

.login-right {
    flex: 1;
    padding: 48px;
    background: white;
}

.logo-area {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8b0000 0%, #dc2626 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    font-weight: bold;
    color: #FFD700;
    box-shadow: 0 10px 20px -5px rgba(139,0,0,0.3);
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, #FFD700, #B8860B);
    z-index: -1;
    opacity: 0.5;
}

.logo-area h2 {
    font-size: 1.5rem;
    color: #7f1d1d;
    font-weight: 700;
}

.logo-area p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #7f1d1d;
    font-size: 0.875rem;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-style: normal;
    font-size: 1.125rem;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 0.875rem;
    transition: all 0.3s;
    font-family: 'Inter', system-ui, sans-serif;
    background: #fafafa;
}

.input-group input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.2);
    background: white;
}

.input-group input.error {
    border-color: #dc2626;
}

.password-field input { padding-right: 68px; }
.password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); min-height: 36px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: #7f1d1d; font-size: .75rem; font-weight: 700; cursor: pointer; }
.password-toggle:hover { background: #fff7ed; }






.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8b0000 0%, #b91c1c 100%);
    color: #FFD700;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139,0,0,0.4);
    background: linear-gradient(135deg, #9b0000 0%, #cc1c1c 100%);
    color: #FFED4A;
}

.login-btn:active {
    transform: translateY(0);
}




.footer-text {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f3e8a0;
    font-size: 0.75rem;
    color: #9ca3af;
}

.decor-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #B8860B);
    margin: 16px auto 0;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
    }

    .login-left {
        padding: 32px;
        text-align: center;
    }

    .login-left h1 {
        font-size: 1.75rem;
    }

    .prestige-badge {
        justify-content: center;
        flex-wrap: wrap;
    }

    .login-right {
        padding: 32px;
    }
}


.gold-text {
    color: #B8860B;
    font-weight: 600;
}

body::before { inset: 0; }
.login-left, .login-right { min-width: 0; }
.logo-icon img { width: 40px; height: 48px; object-fit: contain; }
.prestige-badge { flex-wrap: wrap; }
.input-group i { pointer-events: none; }
.footer-text { color: #6b7280; line-height: 1.6; }
.gold-text { color: #806000; }
.field-error { display: block; color: #991b1b; font-size: .8125rem; margin-top: 8px; }
.notice { position: relative; padding: 16px 48px 16px 16px; margin-bottom: 24px; border-radius: 12px; font-size: .875rem; line-height: 1.6; }
.notice.error { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }
.notice.success { background: #ecfdf5; color: #166534; border-left: 4px solid #15803d; }
.notice ul { padding-left: 20px; margin-top: 6px; }
.dismiss { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: transparent; color: inherit; font-size: 24px; cursor: pointer; }
:focus-visible { outline: 3px solid #a16207; outline-offset: 4px; }
@media (max-width: 380px) { body { padding: 12px; } .login-left, .login-right { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
