﻿/* Strip default browser layout styles on auth views */
html, body {
    margin: 0 !important;
    padding: 0 !important;

    height: 100%;
}


/* Background wrapper with an icy, professional gradient */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f2537 100%);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Frosted glass card panel */
.auth-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    box-sizing:border-box;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

    .auth-header h2 {
        font-size: 26px;
        font-weight: 700;
        color: #f8fafc;
        margin-bottom: 5px;
        letter-spacing: -0.5px;
    }

    .auth-header p {
        color: #94a3b8;
        font-size: 14px;
    }

/* Floating-style label and modern input fields */
.auth-form-group {
    position: relative;
    margin-bottom: 22px;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    .auth-input:focus {
        outline: none;
        border-color: #38bdf8; /* Ice Blue highlight */
        box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
        background: rgba(15, 23, 42, 0.8);
    }

.auth-label {
    display: block;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Checkbox alignment override */
.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #cbd5e1;
    cursor: pointer;
}

/* Premium Ice-Blue Action Button */
.btn-auth-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

    .btn-auth-submit:hover {
        box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
    }

    .btn-auth-submit:active {
        transform: scale(0.98);
    }

/* Sub-links (Forgot password, Resend confirmation) */
.auth-footer-links {
    margin-top: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.auth-link {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .auth-link:hover {
        color: #7dd3fc;
        text-decoration: underline;
    }

/* Errors & Validations */
.auth-validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    color: #fca5a5;
    font-size: 13px;
    list-style-type: none;
}

/* Event Page Specific Top Badge */
.event-hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Icy Blue Loading Spinner Rotation Engine */
.spinner-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin-clockwise 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin-clockwise {
    to {
        transform: rotate(360deg);
    }
}

/* Visually dim disabled buttons during a submit cycle */
.btn-auth-submit:disabled {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .auth-container {
        padding-top: 100px;
    }

}