/* 
    Premium Auth Design System 
    Modern Glassmorphism, Fluid Layouts & Sleek Interactions
*/

:root {
    --auth-primary: #6366f1;
    --auth-primary-hover: #4f46e5;
    --auth-bg-dark: #0f172a;
    --auth-card-bg: rgba(30, 41, 59, 0.5);
    --auth-text-dim: #94a3b8;
    --auth-border: rgba(255, 255, 255, 0.08);
    --auth-glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.premium-auth-body {
    background-color: var(--auth-bg-dark);
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #fff !important;
    overflow-x: hidden;
}

.premium-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 400px),
                radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.1), transparent 400px);
}

/* Background Animated Blobs */
.premium-auth-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    filter: blur(80px);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    animation: premiumBlobMorph 20s infinite alternate;
}

.premium-blob-1 { top: -100px; right: -100px; }
.premium-blob-2 { bottom: -100px; left: -100px; animation-delay: -5s; }

@keyframes premiumBlobMorph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: scale(1) rotate(0deg); }
    100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: scale(1.1) rotate(45deg); }
}

/* Main Container - Split Layout on Desktop */
.premium-auth-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background: var(--auth-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--auth-border);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--auth-glass-shadow);
    animation: premiumAuthEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10;
}

@keyframes premiumAuthEntrance {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Branding Side */
.premium-auth-branding {
    flex: 1.1;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: 1px solid var(--auth-border);
}

@media (max-width: 992px) {
    .premium-auth-branding { display: none !important; }
    .premium-auth-container { max-width: 500px; }
}

.premium-branding-logo {
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
}

.premium-branding-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: none !important;
}

.premium-branding-text {
    color: var(--auth-text-dim) !important;
    line-height: 1.6 !important;
    max-width: 320px;
    font-size: 1rem !important;
}

/* Form Side */
.premium-auth-form-side {
    flex: 1;
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    background: transparent;
}

@media (max-width: 576px) {
    .premium-auth-form-side { padding: 3rem 2rem; }
}

.premium-auth-heading {
    margin-bottom: 2.5rem;
}

.premium-auth-heading h1 {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    color: #fff !important;
}

.premium-auth-heading p {
    color: var(--auth-text-dim) !important;
    font-size: 1rem !important;
}

/* Inputs */
.premium-form-group {
    margin-bottom: 1.5rem;
}

.premium-form-label {
    display: block;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #cbd5e1 !important;
    margin-bottom: 0.6rem !important;
}

.premium-input-container {
    position: relative;
}

.premium-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-dim);
    font-size: 1.1rem;
    z-index: 2;
}

.premium-auth-input {
    width: 100% !important;
    height: 52px !important;
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid var(--auth-border) !important;
    border-radius: 14px !important;
    padding: 0 1rem 0 3rem !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease;
}

.premium-auth-input:focus {
    outline: none !important;
    border-color: var(--auth-primary) !important;
    background: rgba(15, 23, 42, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

/* Actions */
.premium-auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.premium-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--auth-text-dim);
}

.premium-auth-forgot {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

.premium-btn-submit {
    width: 100% !important;
    height: 52px !important;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-hover) 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px -4px rgba(99, 102, 241, 0.3);
}

.premium-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -4px rgba(99, 102, 241, 0.4);
}

/* Social Login */
.premium-auth-social {
    margin-top: 2rem;
}

.premium-social-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--auth-text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.premium-social-title::before, .premium-social-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.premium-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.premium-btn-social {
    height: 48px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--auth-border) !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
}

.premium-btn-social:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px);
}

.premium-btn-social.google { background: #fff !important; color: #000 !important; }
.premium-btn-social.facebook { background: #1877f2 !important; color: #fff !important; border: none !important; }

/* Footer */
.premium-auth-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 2.5rem;
    color: var(--auth-text-dim);
    font-size: 0.95rem;
}

.premium-auth-footer a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Light Theme Overrides */
.premium-auth-body.light {
    --auth-bg-dark: #f8fafc;
    --auth-card-bg: rgba(255, 255, 255, 0.8);
    --auth-text-dim: #64748b;
    --auth-border: rgba(0, 0, 0, 0.06);
    --auth-glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.premium-auth-body.light .premium-branding-title { background: linear-gradient(to right, #1e293b, #6366f1); -webkit-background-clip: text; }
.premium-auth-body.light .premium-auth-heading h1 { color: #1e293b !important; }
.premium-auth-body.light .premium-auth-heading p { color: #64748b !important; }
.premium-auth-body.light .premium-form-label { color: #475569 !important; }
.premium-auth-body.light .premium-auth-input { background: #fff !important; color: #1e293b !important; }
.premium-auth-body.light .premium-btn-social { background: #fff !important; color: #1e293b !important; border-color: rgba(0,0,0,0.1) !important; }
