:root {
    --bs-body-font-family: 'Inter', sans-serif;
    --bs-body-bg: #020617; /* Very dark blue slate */
    --bs-body-color: #f8fafc;
    --accent-gradient: linear-gradient(135deg, #094f98 0%, #0ea5e9 100%); /* Logo blue to sky blue */
    --accent-glow: rgba(14, 165, 233, 0.35); /* Sky blue glow */
}

[x-cloak] { display: none !important; }

body { 
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    margin: 0;
    padding: 1rem;
    font-family: var(--bs-body-font-family);
    position: relative;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+') repeat;
    pointer-events: none;
    opacity: 0.3;
    z-index: -1;
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    perspective: 1000px;
    z-index: 1;
}

.auth-wrapper-lg {
    max-width: 540px;
}

.auth-container {
    padding: 3rem 2.5rem;
    background: transparent;
    opacity: 0;
    transform: translateY(20px);
}

.form-control {
    background-color: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    background-color: rgba(2, 6, 23, 0.8);
    border-color: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 0 0 1px #0ea5e9;
    outline: none;
}

.input-group:focus-within .form-control {
    box-shadow: none;
    border-color: #0ea5e9;
}

.input-group:focus-within .input-group-text {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.input-group:focus-within {
    box-shadow: 0 0 0 1px #0ea5e9;
    border-radius: 12px;
}

.input-group .form-control, .input-group .input-group-text {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control::placeholder {
    color: #64748b;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-btn {
    background: var(--accent-gradient);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    min-height: 42px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    box-shadow: 0 4px 14px 0 rgba(9, 79, 152, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: pointer;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--accent-glow);
    color: #ffffff;
    filter: brightness(1.1);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-secondary {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    min-height: 42px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
}

.auth-btn-secondary:hover {
    background-color: #334155;
    color: #ffffff;
    transform: translateY(-2px);
}

.input-group-text {
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.text-accent {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.2s;
}

.text-accent:hover {
    color: #7dd3fc;
}

.feedback-message {
    font-size: 0.85em;
    margin-top: 0.4rem;
    min-height: 18px;
    display: block;
}

.text-danger {
    color: #ef4444 !important;
}

.text-success {
    color: #0ea5e9 !important;
}

/* Loader */
.spinner-border-sm {
    width: 1.1rem;
    height: 1.1rem;
    border-width: 0.15em;
}