/* =========================== 
   LOGOUT PAGE LAYOUT
   =========================== */
.custom-appbar .mud-toolbar {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: var(--accent-color);
    box-shadow: 5px 0 20px rgba(var(--mud-palette-primary-rgb), 0.1), 0 5px 20px rgba(var(--mud-palette-primary-rgb), 0.1) !important;
}

.logout-container {
    min-height: 100vh;
    display: flex;
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
    background-color: var(--accent-darken-color);
    padding: 0px;
    box-sizing: border-box;
}

.logout-content {
    width: 100%;
    max-width: 80%; /* Controls line length for readability */
    text-align: left; /* Keep text and buttons left-aligned */
}

/* =========================== 
   LOGOUT TYPOGRAPHY
   =========================== */
.logout-title {
    font-size: 80px !important;
    margin: 0 0 5rem 0;
    line-height: 1.2;
    text-align: left;
}

.subtitle-logout {
    font-size: var(--heading-subtitle-font-size);
    font-family: var(--font-title-family);
    font-weight: var(--light-font-weight);
    line-height: 1.4;
    text-align: left;
}

/* =========================== 
   LOGOUT FORM AND BUTTONS
   =========================== */
logout-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Keep form elements aligned to the left */
    width: 100%;
}

.button-logout {
    display: flex;
    flex-direction: row; /* Buttons in a row */
    gap: 1rem;
    margin-top: 1.5rem;
}

.button-validate {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font: var(--button-text);
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 120px;
}

.button-validate:hover {
    background-color: var(--primary-light-1);
}

.button-cancel {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    
}

.button-validate,
.button-cancel {
    width:150px;
    height:60px;
}

.button-cancel:hover {
    background-color: var(--primary-color);
    color: white;
}

/* =========================== 
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    .logout-container {
        padding: 1rem;
        align-items: center;
        justify-content: center;
    }
    
    .logout-content {
        max-width: 100%;
    }
    
    .logout-title {
        font-size: 2.5rem !important;
        margin-bottom: 1.5rem;
    }
    
    .subtitle-logout {
        margin-bottom: 1.5rem;
    }
    
    .d-flex.justify-content-center.gap-3.mt-4 {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .button-validate,
    .button-cancel {
        min-width: 100px;
        flex: 0 0 auto;
    }
}


/* Ensure the page takes full height */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--accent-color);
}

/* Target the main container div */
body > div:first-child {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    .logout-container {
        padding: 1.5rem;
        align-items: center;
        justify-content: center;
    }

    .logout-content {
        max-width: 100%;
        text-align: center;
    }

    .logout-title {
        font-size: 2.5rem !important;
        margin-bottom: 2rem;
        text-align: center;
    }

    .subtitle-logout {
        text-align: center;
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .logout-form {
        align-items: center;
    }

    .button-logout {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .button-validate,
    .button-cancel {
        min-width: 120px;
        height: 50px;
    }
}

/* Only affects mobile portrait view */
@media (max-width: 480px) {
    .logout-container {
        position: relative;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        background-color: var(--accent-darken-color);
        overflow: hidden;
    }

    /* Title + subtitle pinned near the top */
    .logout-header {
        text-align: center;
        padding: 4rem 1rem 1rem 1rem;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    .logout-title {
        font-size: 2rem !important;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .subtitle-logout {
        font-size: 1rem;
        margin-top: 1rem;
        margin-bottom: 0;
    }

    /* Center buttons vertically and horizontally */
    .logout-form {
        flex: 1;
        display: flex;
        justify-content: center; /* centers vertically */
        align-items: center; /* centers horizontally */
        width: 100%;
    }

    .button-logout {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
        max-width:250px;
    }

    .button-validate,
    .button-cancel {
        width: 100%;
        height: 50px;
    }
}



