/* ============================================
   ULTRA-ELEGANT LUXURY LOGIN
   Premium Modern Sophistication
   ============================================ */

:root {
    --primary-blue: #0066FF;
    --secondary-cyan: #00D4FF;
    --accent-purple: #7C3AED;
    --accent-gold: #F59E0B;

    --text-primary: #0F172A;
    --text-secondary: #475569;

    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
}

/* ELEGANT ANIMATED ICONS */
.floating-decoration {
    position: fixed;
    font-size: 55px;
    color: rgba(255, 255, 255, 0.12);
    animation: elegantFloat 28s infinite ease-in-out;
    pointer-events: none;
    filter: blur(0.5px);
}

.decoration-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.decoration-1::before {
    content: '📄';
}

.decoration-2 {
    top: 60%;
    right: 12%;
    font-size: 65px;
    animation-delay: 6s;
}

.decoration-2::before {
    content: '📧';
}

.decoration-3 {
    bottom: 20%;
    left: 10%;
    font-size: 50px;
    animation-delay: 12s;
}

.decoration-3::before {
    content: '📋';
}

body::before,
body::after {
    position: fixed;
    font-size: 58px;
    color: rgba(255, 255, 255, 0.1);
    animation: elegantFloat 32s infinite ease-in-out;
    pointer-events: none;
}

body::before {
    content: '📁';
    top: 25%;
    right: 20%;
    animation-delay: 4s;
}

body::after {
    content: '✉️';
    bottom: 30%;
    right: 6%;
    font-size: 52px;
    animation-delay: 8s;
}

@keyframes elegantFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.12;
    }

    25% {
        transform: translate(35px, -40px) rotate(10deg) scale(1.05);
        opacity: 0.18;
    }

    50% {
        transform: translate(-30px, 30px) rotate(-8deg) scale(0.95);
        opacity: 0.15;
    }

    75% {
        transform: translate(25px, 20px) rotate(6deg) scale(1.02);
        opacity: 0.2;
    }
}

/* PREMIUM CONTAINER */
.auth-container {
    width: 100%;
    max-width: 800px;
    z-index: 10;
    animation: luxuryEntrance 0.8s cubic-bezier(0.34, 1.25, 0.64, 1);
}

@keyframes luxuryEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ULTRA-ELEGANT CARD */
.auth-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFF 100%);
    border-radius: var(--radius-xl);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        0 0 150px rgba(0, 102, 255, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    overflow: hidden;
    min-height: 520px;
    max-height: 90vh;
    position: relative;
}

/* Elegant top shine */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 102, 255, 0.6),
            rgba(0, 212, 255, 0.6),
            transparent);
    animation: topGlow 4s ease-in-out infinite;
}

@keyframes topGlow {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Subtle card shimmer */
.auth-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.08) 50%,
            transparent 70%);
    animation: cardShimmer 10s infinite;
    pointer-events: none;
}

@keyframes cardShimmer {
    0% {
        transform: translate(-100%, -100%) rotate(45deg);
    }

    100% {
        transform: translate(100%, 100%) rotate(45deg);
    }
}

/* LEFT BRANDING - ELEGANT GRADIENT */
.auth-branding {
    background: linear-gradient(135deg,
            rgba(0, 102, 255, 0.96) 0%,
            rgba(0, 212, 255, 0.92) 50%,
            rgba(124, 58, 237, 0.88) 100%);
    background-size: 200% 200%;
    animation: brandingGradient 10s ease infinite;
    padding: 2.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes brandingGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Elegant pattern overlay */
.auth-branding::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 40%, rgba(255, 255, 255, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.08) 100%);
    animation: patternPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes patternPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* PREMIUM LOGO */
.auth-logo {
    width: 85px;
    height: 85px;
    margin-bottom: 1.25rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 3rem;
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.25),
        0 0 60px rgba(0, 102, 255, 0.4),
        0 0 0 5px rgba(255, 255, 255, 0.5),
        0 0 0 10px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    animation: logoLuxuryPulse 4s ease-in-out infinite;
}

@keyframes logoLuxuryPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 15px 45px rgba(0, 0, 0, 0.25),
            0 0 60px rgba(0, 102, 255, 0.4),
            0 0 0 5px rgba(255, 255, 255, 0.5),
            0 0 0 10px rgba(255, 255, 255, 0.2);
    }

    50% {
        transform: scale(1.04);
        box-shadow:
            0 20px 55px rgba(0, 0, 0, 0.3),
            0 0 80px rgba(0, 102, 255, 0.5),
            0 0 0 6px rgba(255, 255, 255, 0.6),
            0 0 0 12px rgba(255, 255, 255, 0.25);
    }
}

.brand-title {
    color: #FFFFFF;
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.98);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.brand-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 250px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.brand-decoration {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.7rem;
    position: relative;
    z-index: 2;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFFFFF, rgba(255, 255, 255, 0.8));
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5);
    animation: dotElegance 2.5s ease-in-out infinite;
}

.brand-dot:nth-child(2) {
    animation-delay: 0.4s;
}

.brand-dot:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes dotElegance {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.35);
        opacity: 1;
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.8);
    }
}

/* RIGHT FORM - ULTRA REFINED */
.auth-form-section {
    padding: 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.auth-form-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-form-section::-webkit-scrollbar {
    width: 5px;
}

.auth-form-section::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-blue), var(--secondary-cyan));
    border-radius: 10px;
}

/* ELEGANT HEADER */
.auth-header {
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
    letter-spacing: -0.6px;
    line-height: 1.2;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.6;
}

/* PREMIUM ALERT */
.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.92rem;
    font-weight: 700;
    animation: alertSlide 0.4s cubic-bezier(0.34, 1.25, 0.64, 1);
}

@keyframes alertSlide {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: linear-gradient(135deg, #FEE2E2, #FEF2F2);
    border: 2px solid #F87171;
    color: #7F1D1D;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.15);
}

.alert i {
    font-size: 1.25rem;
    color: #DC2626;
}

/* REFINED FORM */
.auth-form {
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
}

.form-label i {
    color: var(--primary-blue);
    font-size: 1.05rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-md);
    background: #F8FAFC;
    color: var(--text-primary);
    font-size: 0.96rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.form-control::placeholder {
    color: #94A3B8;
    font-weight: 500;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow:
        0 0 0 4px rgba(0, 102, 255, 0.12),
        0 8px 20px rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
}

/* ULTIMATE LUXURY BUTTON */
.btn-login {
    width: 100%;
    padding: 1.1rem;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #0066FF 0%, #00D4FF 50%, #7C3AED 100%);
    background-size: 200% 200%;
    animation: buttonLuxuryGlow 4s ease infinite;
    color: white;
    font-weight: 900;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 12px 35px rgba(0, 102, 255, 0.45),
        0 0 60px rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

@keyframes buttonLuxuryGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.25) 50%,
            transparent 100%);
    transform: translateX(-100%);
    animation: buttonEliteShine 3.5s infinite;
}

@keyframes buttonEliteShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

.btn-login:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 18px 45px rgba(0, 102, 255, 0.55),
        0 0 80px rgba(0, 212, 255, 0.4);
}

.btn-login:active {
    transform: translateY(-1px) scale(1);
}

/* ELEGANT FOOTER - BOTTOM CENTER BUTTON */
.auth-footer {
    text-align: center;
    margin-top: 1.75rem;
}

.back-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-md);
    background: #F1F5F9;
    border: 1.5px solid #E2E8F0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-link i {
    font-size: 0.75rem;
}

.back-link:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: white;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
}

/* RESPONSIVE - FULLY OPTIMIZED */
@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .auth-branding {
        padding: 3rem 2.5rem;
    }

    .auth-logo {
        width: 95px;
        height: 95px;
        font-size: 3rem;
        margin-bottom: 1.75rem;
    }

    .brand-title {
        font-size: 1.85rem;
    }

    .auth-form-section {
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 640px) {
    body {
        padding: 1rem;
    }

    .auth-card {
        border-radius: var(--radius-lg);
    }

    .auth-branding,
    .auth-form-section {
        padding: 2.5rem 2rem;
    }

    .auth-logo {
        width: 85px;
        height: 85px;
        font-size: 2.75rem;
        margin-bottom: 1.5rem;
    }

    .brand-title {
        font-size: 1.7rem;
    }

    .auth-header h2 {
        font-size: 1.85rem;
    }
}

@media (max-width: 480px) {

    .auth-branding,
    .auth-form-section {
        padding: 2rem 1.5rem;
    }

    .auth-logo {
        width: 75px;
        height: 75px;
        font-size: 2.25rem;
    }

    .brand-title {
        font-size: 1.55rem;
    }

    .auth-header h2 {
        font-size: 1.65rem;
    }

    .form-control,
    .btn-login {
        font-size: 0.95rem;
    }
}