/* 
 * Aurora Glass Theme - v1.0
 * A hyper-modern design system for authentication pages.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=IBM+Plex+Sans+Arabic:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #0f172a;
    /* Slate 900 - Deep Blue/Grey */
    --glass-bg: rgba(30, 41, 59, 0.7);
    /* Slate 800 */
    --glass-border: rgba(255, 255, 255, 0.05);
    /* Calm Gradient: Blue to Cyan to Teal */
    --primary-glow: conic-gradient(from 180deg at 50% 50%, #0ea5e9 0deg, #3b82f6 180deg, #14b8a6 360deg);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --input-bg: rgba(15, 23, 42, 0.6);
    --radius-lg: 24px;
    --radius-md: 12px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'IBM Plex Sans Arabic', 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* --- Aurora Background --- */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
}

.aurora-blob {
    position: absolute;
    filter: blur(100px);
    /* Softer blur */
    opacity: 0.4;
    /* More subtle */
    animation: drift 25s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: #1d4ed8;
    /* Blue 700 */
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -20%;
    width: 60vw;
    height: 60vw;
    background: #0f766e;
    /* Teal 700 */
    animation-delay: -8s;
}

.blob-3 {
    top: 30%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: #334155;
    /* Slate 700 */
    animation-delay: -15s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* --- Glass Panel --- */
.auth-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    animation: zoomIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

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

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Typography --- */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Inputs --- */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px 16px 50px;
    /* Space for icon LTR/RTL handled below */
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}

html[dir="rtl"] .form-control {
    padding: 16px 50px 16px 20px;
}

.form-control:focus {
    border-color: #6366f1;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: 0.3s;
}

html[dir="rtl"] .input-icon {
    right: 20px;
}

html[dir="ltr"] .input-icon {
    left: 20px;
}

.form-control:focus~.input-icon {
    color: #818cf8;
}

/* --- Button --- */
.btn-primary-glow {
    position: relative;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
    /* Blue to Sky */
    color: white;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
}

.btn-primary-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.2));
    opacity: 0;
    transition: 0.3s;
}

.btn-primary-glow:hover::after {
    opacity: 1;
}

/* --- Links --- */
.auth-links {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.link-light {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.link-light:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.link-accent {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
}

.link-accent:hover {
    text-decoration: underline;
    color: #7dd3fc;
}

/* --- Badge & Alerts --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* --- Utility --- */
.text-gradient {
    background: linear-gradient(to right, #22d3ee, #818cf8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.file-upload-box {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.file-upload-box:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

@media (max-width: 600px) {
    .auth-card {
        padding: 2rem;
        margin: 1.5rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }
}