﻿/* ===== Reset / base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #ffb347, #fff0e1, #ac6b2c);
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #332211;
}

/* ===== Main Container ===== */
.mpr-container {
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2.5rem;
}


/* ===== Logo Image ===== */
.logo-top {
    display: block;
    /* width: 60%; */
    max-width: 220px;
    /* margin: 0 auto 1rem auto; */
    /* max-height: 80vh; */
}

/* ===== Card Wrapper ===== */
.mpr-card {
    width: 100%;
    background: rgba(255, 248, 240, 0.8);
    border: 2px solid #ffb347;
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem 1.5rem; /* 👈 Reduced padding */
    text-align: center;
    overflow-y: auto; /* 👈 In case content overflows on small screens */
}


/* ===== Title Styling ===== */
.portal-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    padding: 1rem;
    border: 2px solid #ffb347;
    border-radius: 0.75rem;
    background-color: rgba(255, 179, 71, 0.15);
    margin-bottom: 2rem;
    display: inline-block;
    width: 100%;
    color: #5a3e1b;
}

    .portal-title span {
        font-size: 1.1rem;
        font-weight: 500;
        opacity: 0.85;
    }

/* ===== Icon Grid ===== */
.icon-fa {
    font-size: 3rem;
    padding: 1rem;
    color: #5a3e1b;
}

.icon-row {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

.icon-option {
    flex: 1 1 160px;
    padding: 1.5rem 0.75rem;
    border-radius: 0.75rem;
    transition: transform 0.25s ease, background 0.25s ease;
    cursor: pointer;
    background: rgba(255, 236, 208, 0.4);
}

    .icon-option:hover,
    .icon-option:focus-visible {
        transform: translateY(-4px);
        background: rgba(255, 179, 71, 0.2);
    }

    .icon-option p {
        font-size: 1.05rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        color: #5a3e1b;
    }

/* ===== Modal Styling ===== */
.dark-modal {
    background-color: #fff8f0;
    color: #333;
    border: none;
    border-radius: 1rem;
}

    .dark-modal .modal-title {
        font-size: 1.8rem;
        font-weight: 600;
        color: #5a3e1b;
    }

    .dark-modal .form-control {
        background-color: #fef5e7;
        border: 1px solid #d6a772;
        color: #5a3e1b;
        padding: 0.85rem 1rem;
    }

        .dark-modal .form-control::placeholder {
            color: #b58b5b;
            opacity: 0.9;
        }

    .dark-modal a {
        color: #a66428;
        font-weight: 500;
    }

        .dark-modal a:hover {
            color: #5a3e1b;
        }

/* ===== Submit Button ===== */
.submit-btn {
    background: linear-gradient(to right, #ff8c42, #e87d3e);
    border: none;
    border-radius: 0.85rem;
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
    font-weight: bold;
    color: white;
    transition: transform 0.25s, box-shadow 0.25s;
}

    .submit-btn:hover,
    .submit-btn:focus-visible {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
        background: #ffffff;
        color: #5a3e1b;
        border: 2px solid #e87d3e;
    }

/* Make sure the container has relative positioning */
.input-box {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    z-index: 10;
    color: #007bff;
    padding: 0;
    cursor: pointer;
    font-size: 1rem;
}

    .password-toggle-btn:hover {
        color: #0056b3;
    }

/* Only style the 'coming soon' item */
.coming-soon {
    position: relative;
    text-align: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none; /* disables interaction ONLY for this one */
}

    .coming-soon .coming-soon-badge {
        position: absolute;
        top: 5px;
        right: 5px;
        background-color: #ffc107;
        color: #000;
        font-size: 0.7rem;
        font-weight: bold;
        padding: 0.2rem 0.4rem;
        border-radius: 0.25rem;
        text-transform: uppercase;
        box-shadow: 0 0 4px rgba(0,0,0,0.2);
    }

/* Emphasize the Roommate option */
.roommate-highlight {
    background-color: #fff4f2;
    border: 2px solid #e87d3e;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(232, 125, 62, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

    .roommate-highlight:hover {
        transform: scale(1.08);
        box-shadow: 0 0 25px rgba(232, 125, 62, 0.4);
    }

.badge-popular {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #e87d3e;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    z-index: 1;
}

.logo-container {
    display: flex;
    justify-content: center;
}

.title-container {
    text-align: center;
}



/* ===== Loader ===== */

.bgLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 37, 41, 0.81);
    z-index: 9999;
}

.loader {
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) { /* Adjust the max-width as per your mobile breakpoint */
    .loader {
        width: 120px;
        height: 120px;
        -webkit-animation: spin 2s linear infinite;
        animation: spin 2s linear infinite;
        position: fixed;
        top: 30%;
        left: 15%;
        transform: translate(-50%, -50%);
    }
}

.loader-icon {
    background: transparent;
    text-align: center;
    color: #ffc107;
    font-size: 7rem;
    padding-left: 0rem;
    padding-top: 2rem;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg)
    }

    100% {
        -webkit-transform: rotate(360deg)
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg)
    }

    100% {
        -webkit-transform: rotate(360deg)
    }
}

