﻿/* Container and Card Layout */
.authorize-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color); /* Soft background */
    padding: 20px;
}


.card-authorize {
    min-width: 500px;
    max-width: 600px;
    width: 50%;
    max-height:95%;
    background-color: white;
    border-radius: 8px;
    border: 1.5px solid var(--primary-color); /* Primary color border */
    padding: 30px 70px;
    text-align: center;
}


.nv-logo-auth {
    margin-bottom:7%;
}


.highlight-h5 {
    font-size: var( --heading-subtitle-font-size);
    color: var(--primary-color);
    font-weight: var(--bold-font-weight);
}

.highlight-p {
    color: var(--primary-color);
    font-weight: var(--bold-font-weight);
}

.divider {
    border-top: 3px solid var(--accent-darken-color);
    margin: 30px 150px;
}

.description {
    text-align: left;
    color: black;
    margin-bottom: 25px;
}

.permissions {
    list-style-type: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: left;
}

    .permissions li {
        display: flex;
        align-items: center;
        margin: 8px 0;
    }

        .permissions li i {
            color: var(--primary-color);
            margin-right: 10px;
        }
        .permissions li p {
            color: black;
            margin: 0 5px;
        }

.note-sign-out {
    color: black;
    margin-top: 20px;
    text-align: left;
}





.actions {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Adjust this value to increase or decrease the space */
    margin-top: 20px;
}

button.accept, button.cancel {
    width: 45%; /* Allows flex container to manage the spacing */
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: var(--button-text-font-size);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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

button.cancel {
    background-color: var(--accent-darken-color);
    color: #333;
}

    button.cancel:hover {
        background-color: var(--secondary-light-1);
    }










/* Mobile Adjustments for Phone Screen Size */
@media (max-width: 600px) {
    .center-div {
        height: auto 0;
    }
    /* Hide the authorize container background on mobile */
    .authorize-container {
        background-color: transparent; /* No background on mobile view */
        padding: 0; /* No padding */
        justify-content: flex-start; /* Align content at the top */
    }

    .card-authorize {
        overflow-y: auto;
        padding: 0;
        width: 100%;
        height: 100%; /* Let the card expand based on content */
        max-width: 100%; /* Allow the card to use full width on mobile */
        min-width: 0; /* Ensure it doesn't stretch too much on small screens */
        border: none;
    }

    .nv-logo-auth {
        max-width: 50%;
        max-height: 50%;
    }

    .highlight-h5 {
        font-size: var(--big-body-font-size)
    }
    .highlight-P {
        font-size: var(--body-small-font-size);
    }

    .description {
        font-size: var(--body-small-font-size);
    }
    .divider {
        margin: 45px 100px;
    }
    .permissions li p{
        font-size:var(--body-small-font-size);
    }

    /* Stack buttons vertically on small screens */
    .actions {
        align-items: center;
    }

        .actions button {
            width: 100%;
            margin-bottom: 10px;
        }

    
}

/* Ensure the content fits on smaller screens, avoid overflow */
@media (max-height: 950px) {
    .center-div {
        width:100%; /* Can be in percentage also. */
        height: auto;
        margin: 0 auto;
        position: relative;
    }
    .card-authorize {
        padding: 30px 70px;
        height: 95%; /* Allow card to take up most of the screen height */
        overflow-y: auto;

    }

        .card-authorize .content {
            overflow: hidden; /* Prevent overflow */
        }
    .nv-logo-auth {
        max-width: 30%;
        max-height: 30%;
        margin-bottom:5%;
    }
    .authorize-container h5 {
        font-size: var(--big-body-font-size);
    }
    .highlight-h5 {
        font-size: var(--big-body-font-size);
    }
    .highlight-p {
        font-size: var(--body-small-font-size);
    }

    .description {
        font-size: var(--body-small-font-size);
        margin-bottom: 10px;
    }

    .divider {
        margin: 30px 100px;
    }

    .permissions {
        display: flex;
        flex-flow: wrap;
        margin-bottom:10px;
    }

        .permissions li {
            width: fit-content;
        }

            .permissions li p {
                font-size: var(--body-small-font-size);
                max-width: 50%;
                white-space: nowrap; 
                margin-right:15px;

            }

    /* Stack buttons vertically on small screens */
    .actions {
        align-items: center;
    }

        .actions button {
            width: 100%;
            margin-bottom: 10px;
        }

    /* Optional: Hide note-sign-out on very small screens to save space */
    .note-sign-out {
        font-size: var(--body-small-font-size);
        margin-top:0;
    }
}



