/* ===== LOGIN PAGE ===== */
.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* ===== LOGIN HEADER ===== */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .header-link {
    text-decoration: none;
    display: inline-block;
}

.login-header .logo-vertical {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    transition: transform 0.3s ease;
}

.login-header .logo-horizontal {
    width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.login-header .header-link:hover .logo-vertical,
.login-header .header-link:hover .logo-horizontal {
    transform: scale(1.02);
}

/* ===== CARD ===== */
.card {
    background: #edede0;
    border-radius: 30px;
    padding: 28px;
    width: 100%;
    max-width: 420px;
    border: 1.5px solid black;
}

.card h2 {
    font-family: "Montserrat", sans-serif;;
    font-size: 28px;
    font-weight: 800;
    color: black;
    margin-bottom: 18px;
}

/* ===== FORM ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888880;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.form-control {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1.5px solid black;
    border-radius: 25px;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;;
    background-color: #edede0;
    background-image: url("https://www.svgrepo.com/show/509905/dropdown-arrow.svg");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px 20px;
    color: black;
    transition: border-color 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: black;
}

input.form-control,
textarea.form-control {
    background-image: none;
    cursor: text;
}

select.form-control {
    cursor: pointer;
}

/* ===== LINKS ===== */
.link-registo {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #888880;
}

.link-registo a {
    color: black;
    font-weight: 600;
    text-decoration: underline;
}

/* ===== SIGN UP SPECIFIC ===== */
.is-invalid { border-color: #c0392b !important; }
.invalid-feedback {
    font-size: 12px;
    color: #c0392b;
    margin-top: 4px;
    padding-left: 4px;
}

/* ===== LOGOUT ===== */
.logout-wrap { text-align: center; margin: 10px 0 20px; }
.btn-logout {
    background: transparent; border: 1.5px solid black;
    border-radius: 25px; padding: 8px 24px; font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #888880;
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: black;
}

/* ===== GOOGLE BUTTON ===== */
.btn-google {
    width: 100%;
    padding: 12px;
    background: #edede0;
    color: black;
    border: 1.5px solid black;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Montserrat", sans-serif;;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-google:hover {
    background: white;
}

.btn-google img {
    width: 18px;
}

/* ===== VALIDATION ===== */
.is-invalid {
    border-color: #c0392b !important;
}

.invalid-feedback {
    font-size: 12px;
    color: #c0392b;
    margin-top: 4px;
    padding-left: 4px;
}

/* ===== POPUP STYLES ===== */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-card {
    background: #edede0;
    border: 1.5px solid black;
    border-radius: 24px;
    padding: 36px;
    width: 90%;
    max-width: 480px;
    position: relative;
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.popup-overlay.active .popup-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.popup-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.popup-back {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: black;
    padding: 0;
    line-height: 1;
}

.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    font-weight: 700;
    color: black;
    padding: 0;
    line-height: 1;
}

.popup-title {
    font-family: "Montserrat", sans-serif;;
    font-size: 36px;
    font-weight: 600;
    color: black;
    margin-bottom: 5px;
    text-align: center;
}

.popup-btns-main {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

.popup-btns-social {
    display: flex;
    gap: 12px;
}

.btn-popup-social {
    flex: 1;
    background: transparent;
    color: black;
    border: 1.5px solid black;
    border-radius: 25px;
    padding: 8px 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Montserrat", sans-serif;;
}

.btn-popup-social:hover {
    background: rgba(0,0,0,0.05);
}

.popup-guest {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #888880;
    cursor: pointer;
    text-decoration: underline;
}

.popup-guest:hover {
    color: black;
}

/* ===== POPUP RESPONSIVE ===== */
@media (max-width: 768px) {
    .popup-card {
        padding: 24px;
        width: 95%;
    }

    .popup-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .popup-btns-main {
        flex-direction: column;
        gap: 10px;
    }

    .popup-btns-social {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== FORM GRID ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ===== CHECKBOX STYLES ===== */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.form-check input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--black);
}

.form-check label {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* ===== TEXTAREA ===== */
textarea.form-control {
    resize: vertical;
}

/* ===== SELECT ===== */
select.form-control {
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .login-header .logo-vertical {
        width: 70px;
    }

    .login-header .logo-horizontal {
        width: 200px;
    }

    .card {
        padding: 20px;
    }

    .card h2 {
        font-size: 24px;
        font-weight: 600;
    }
}