/* ========================================
   AUTH LOGIN STYLES
   Context: Authentication Pages (Login/Register)
   ======================================== */

/* Fix Body for full screen no scroll */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    overflow-y: auto;
    /* Allow vertical scroll */
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    /* Allow it to grow */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    position: relative;
    /* overflow: hidden;  <-- REMOVED to allow scroll */
    background-color: #050505;
}

/* Ensure consistent sizing */
.login-wrapper * {
    box-sizing: border-box;
}

/* Ambient Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    /* More subtle glow */
    z-index: 0;
    animation: float 10s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    top: -50px;
    left: -50px;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-secondary);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {

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

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

/* Mini Header */
.auth-mini-header {
    margin-bottom: var(--space-6);
    z-index: 2;
    width: 100%;
    max-width: 420px;
    /* Match login-card width */
}

.auth-mini-content {
    display: flex;
    justify-content: center;
}

.mini-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    background: rgba(15, 15, 17, 0.6);
    /* Semi-transparent */
    padding: 12px 24px;
    border-radius: 20px;
    border: 1px solid rgba(163, 230, 53, 0.1);
    /* Subtle purple tint border */
    box-shadow: 0 0 40px rgba(163, 230, 53, 0.05);
    /* Very subtle glow */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 100%;
    min-width: 320px;
}

.mini-brand:hover {
    transform: translateY(-2px);
    border-color: rgba(163, 230, 53, 0.4);
    box-shadow: 0 0 40px rgba(163, 230, 53, 0.25);
}

.logo-container {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.mini-logo {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    /* Rounded square */
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-glow {
    position: absolute;
    inset: -10px;
    /* Expand glow beyond container */
    background: linear-gradient(135deg, #a3e635, #ec4899);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.4;
    z-index: 0;
}

.mini-text-col {
    display: flex;
    flex-direction: column;
}

.mini-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.mini-subtitle {
    font-size: 0.85rem;
    color: #a1a1aa;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

/* Card Design */
.login-card {
    width: 100%;
    max-width: 420px;
    /* More transparent/minimal bg */
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 30px;
    /* Reduced from 40px */
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.01), 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
    /* Reduced from 30px */
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    color: var(--accent-primary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #c084fc;
    /* Light purple */
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.3s;
}

.input-field {
    width: 100%;
    background: #121215;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 12px 16px 12px 44px;
    /* Reduced from 14px */
    /* Space for icon */
    color: #e4e4e7;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* Force the email input to look like the reference (simulating focus or just style) */
#email.input-field {
    border-color: #65a30d;
    /* Violet/Purple border */
    background: rgba(124, 58, 237, 0.05);
    /* Slight purple tint */
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2);
}

/* Update icon color for the email input specifically */
.input-wrapper:has(#email) .input-icon {
    color: #bef264;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

.input-field:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--accent-primary);
}

.input-error {
    border-color: var(--accent-danger);
}

.error-text {
    color: var(--accent-danger);
    font-size: 0.85rem;
}

/* Error Alert Box */
.error-alert {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 10px;
    color: #fda4af;
    font-size: 0.9rem;
    align-items: flex-start;
}

.error-alert ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Checkbox */
.remember-group {
    display: flex;
    align-items: center;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid #52525b;
    border-radius: 5px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.custom-checkbox input:checked~.checkmark {
    background: #a3e635;
    border-color: #a3e635;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.custom-checkbox input:checked~.checkmark::after {
    opacity: 1;
}

.checkbox-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Button */
.login-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-pink) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(168, 85, 247, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.5);
    filter: brightness(1.1);
}

.btn-icon {
    transition: transform 0.3s;
}

.login-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Footer */
.login-footer {
    margin-top: 20px;
    /* Reduced from 30px */
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.register-link {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
    align-self: center;
}

.register-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .login-card {
        padding: 24px;
    }
}