/* Auth Pages Premium Styling */

:root {
    --auth-bg: #0f172a;
    --auth-primary: #6366f1;
    --auth-primary-hover: #4f46e5;
    --auth-card-bg: rgba(30, 41, 59, 0.7);
    --auth-card-border: rgba(255, 255, 255, 0.08);
    --auth-text-main: #f8fafc;
    --auth-text-muted: #94a3b8;
    --auth-input-bg: rgba(15, 23, 42, 0.6);
    --auth-input-border: rgba(255, 255, 255, 0.1);
    --auth-input-focus: #818cf8;
}

body {
    background-color: var(--auth-bg) !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.15) 0px, transparent 50%) !important;
    color: var(--auth-text-main) !important;
}

.app-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    width: 100% !important;
}

.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--auth-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--auth-card-border);
    padding: 3rem 2.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--auth-primary) 0%, #a855f7 100%);
    border-radius: 1rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--auth-text-main);
    margin-bottom: 0.5rem;
}

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

/* Alert styles */
.auth-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--auth-text-muted);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: 0.75rem;
    color: var(--auth-text-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: var(--auth-input-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-input:focus + .input-icon {
    color: var(--auth-input-focus);
}

.error-text {
    color: #fca5a5;
    font-size: 0.75rem;
    margin-top: 0.375rem;
    display: block;
}

.auth-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--auth-primary) 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3), 0 4px 6px -4px rgba(99, 102, 241, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Footer credits */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--auth-text-muted);
}

@media (max-width: 576px) {
    .auth-wrapper {
        padding: 1rem 0.75rem;
    }

    .auth-card {
        padding: 2rem 1.25rem;
        border-radius: 1rem;
    }

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

    .auth-header {
        margin-bottom: 1.75rem;
    }
}
