:root {
    --bg-app: #0f0f13;
    --primary: #7c5cff;
    --primary-hover: #6b4ce6;
    --secondary: #30d5c8;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border-light: rgba(255, 255, 255, 0.08);
    --radius-md: 12px;
}

body.auth-theme {
    background-color: var(--bg-app);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    color: var(--text-main);
}

/* Split Layout Container */
.auth-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Left Section - Visual */
.auth-visual {
    flex: 1.2;
    /* Slightly wider */
    position: relative;
    background: radial-gradient(circle at 30% 30%, #1a1a2e, #0f0f13);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
}

/* Mesh Background for Visual Side */
.auth-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.15), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(48, 213, 200, 0.1), transparent 40%);
    animation: rotate 60s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hero Image/Art */
.visual-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.visual-circle {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.0));
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 100px rgba(124, 92, 255, 0.1);
}

.visual-image {
    width: 120%;
    /* Large dragon/logo */
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.visual-text {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.visual-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #fff, #a5a6f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visual-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
}

/* Right Section - Form */
.auth-form-side {
    flex: 1;
    background: rgba(15, 15, 19, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 10;
    border-left: 1px solid var(--border-light);
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
}

/* Header */
.auth-head {
    margin-bottom: 40px;
}

.auth-head h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.auth-head .subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-main);
    transition: all 0.3s;
}

.form-control:focus {
    border-bottom-color: var(--primary);
    background: transparent;
    box-shadow: none;
}

.form-control::placeholder {
    color: var(--text-dim);
}

/* Password Toggle */
.form-input-icon {
    position: relative;
}

.toggle-visibility {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s;
}

.toggle-visibility:hover {
    color: var(--text-main);
}

/* Buttons */
.btn-primary,
.btn-outline {
    width: 100%;
    padding: 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 54px;
    /* Fixed equal height */
    text-decoration: none;
    margin-top: 12px;
}

.btn-primary {
    background: var(--text-main);
    color: black;
    border: none;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Meta */
.auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-size: 13px;
    position: relative;
    z-index: 20;
}

.check-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    z-index: 25;
}

.check-inline input {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.btn-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    z-index: 25;
}

.btn-link:hover {
    color: var(--text-main);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .auth-visual {
        display: none;
    }

    .auth-form-side {
        border-left: none;
    }

    .auth-container {
        justify-content: center;
    }
}