/* ==========================================================================
   AUTH PAGE LAYOUT
   ========================================================================== */
body.home,
main {
    width: 100% !important;
    min-width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center !important; /* Forces the children (auth-page) to the center */
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    min-height: 80vh;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    background: transparent;
    z-index: 5;
}

.auth-content {
    display: flex;
    width: 100%;
    flex: 1;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* ==========================================================================
   AUTH CARD (Glassmorphism)
   ========================================================================== */

.auth-card {
    width: 90%;
    max-width: 440px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px;
    border-radius: 32px;
    position: relative;
    /* Dark semi-transparent gradient */
    background: linear-gradient(275deg, rgba(24, 24, 24, 0.4) 0%, rgba(24, 24, 24, 0.9) 57%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

    /* The subtle border highlight */
    .auth-card::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 1px;
        border-radius: 32px;
        background: linear-gradient(256deg, rgba(161, 161, 161, 0.5) 0%, rgba(82, 82, 91, 0.2) 68%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

.form-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.input-label {
    font-family: "Outfit-Regular", Helvetica;
    color: var(--collection-1-color-grey-100);
    font-size: 14px;
}

.auth-input {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 16px;
    color: white;
    font-family: "Outfit-Light", Helvetica;
    transition: all 0.2s ease;
}

    .auth-input:focus {
        border-color: var(--collection-1-color-gradient-cyan);
        background: rgba(255, 255, 255, 0.08);
    }

/* Hide Microsoft Edge native show/hide password and clear buttons */
.auth-input::-ms-reveal,
.auth-input::-ms-clear,
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* Password eye-icon positioning */
.password-field-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    opacity: 0.5;
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.toggle-password:hover {
    opacity: 1;
}


/* ==========================================================================
   ASP.NET VALIDATION STYLES
   ========================================================================== */

/* This triggers when a field fails C# validation */
.input-validation-error {
    border-color: var(--collection-1-color-gradient-red) !important;
    background: rgba(255, 75, 50, 0.05) !important;
}

/* This is the error message text */
.field-validation-error, .text-danger {
    color: var(--collection-1-color-gradient-red);
    font-size: 12px;
    font-family: "Outfit-Light", Helvetica;
    margin-top: 4px;
}

/* ==========================================================================
   FOOTER & LINKS
   ========================================================================== */

.submit-btn {
    width: 100%;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    font-family: "Outfit-Light", Helvetica;
    font-size: 14px;
    color: var(--collection-1-color-grey-400);
}

.auth-link {
    color: var(--collection-1-color-gradient-cyan);
    text-decoration: none;
    font-family: "Outfit-Regular", Helvetica;
    transition: opacity 0.2s ease;
}

    .auth-link:hover {
        opacity: 0.8;
        text-decoration: underline;
    }

/* Nice styling for the error message */
.validation-msg {
    color: #e63946;
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
}

.input-error-border {
    border: 1.5px solid #e63946 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Activation Page */
.activation-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    min-height: 80vh;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    background: transparent;
    z-index: 5;
}

/* Centered Card */
.activation-card {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
    /* Dark semi-transparent gradient */
    background: linear-gradient(275deg, rgba(24, 24, 24, 0.4) 0%, rgba(24, 24, 24, 0.9) 57%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 450px;
    width: 100%;
    animation: slideUp 0.5s ease-out;
    z-index: 5;
}

/* Icon Styling */
.status-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 40px;
}

.success-icon {
    background-color: #ecfdf5;
    color: #10b981;
}

.error-icon {
    background-color: #fef2f2;
    color: #ef4444;
}

.activation-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--collection-1-color-grey-100);
    margin-bottom: 1rem;
}

.activation-message {
    color: var(--collection-1-color-grey-100);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Action Button */
.btn-signin {
    position: relative;
    display: inline-block;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

    .btn-signin::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 2px; /* thickness of gradient border */
        border-radius: 50px;
        background: linear-gradient( 90deg, rgba(0, 229, 229, 1) 0%, rgba(233, 97, 255, 1) 100% );
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        z-index: -1; /* put behind button content */
        pointer-events: none;
        transition: all 0.3s ease;
    }

    /* Optional hover effect: slightly darken background */
    .btn-signin:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 229, 229, 0.4);
        color: white;
    }

/* Animation */
@@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}