﻿/* ================================
   ADMIN LOGIN PAGE (COMPACT FLEX)
================================ */

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0B1F3A, #122B50);
}

/* FULL SCREEN CENTERING */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, #0B1F3A, #122B50);
}

/* LOGIN CARD */
.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 320px; /* slightly smaller */
    padding: 1.5rem 1.5rem; /* compact padding */
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 16px 38px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    justify-content: center; /* center content vertically */
}

/* LOGO */
.login-logo {
    max-width: 70px;
    margin-bottom: 0.8rem;
    align-content:center;
    align-self:center;
}

/* TITLES */
.login-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #2c2c2c;
}

.login-card .subtitle {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.8rem;
}

/* FORM LABELS */
.form-label {
    font-weight: 500;
    color: #2c2c2c;
    font-size: 0.85rem;
}

.form-control {
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #ddd;
}

    .form-control:focus {
        border-color: #1fb7b1;
        box-shadow: 0 0 0 0.12rem rgba(31, 183, 177, 0.25);
    }

/* FORGOT PASSWORD */
.text-end {
    margin-bottom: 0.8rem; /* reduce spacing */
}

    .text-end a {
        font-size: 0.75rem;
    }

/* BUTTON */
.btn-gradient {
    background: linear-gradient(135deg, #1fb7b1, #8a4ecb);
    border: none;
    color: #ffffff;
    border-radius: 22px;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
    margin-bottom: 0.8rem; /* tighter spacing after button */
}

    .btn-gradient:hover {
        opacity: 0.9;
        color: #ffffff;
    }

/* FOOTER */
.login-footer {
    margin-top: auto; /* push footer to bottom */
    font-size: 0.75rem;
    color: #aaa;
}

/* MOBILE */
@media (max-width: 576px) {
    .login-card {
        max-width: 100%;
        padding: 1.2rem 1rem;
        border-radius: 18px;
    }

    .login-logo {
        max-width: 60px;
        margin-bottom: 0.6rem;
    }

    .login-card h1 {
        font-size: 1.3rem;
    }

    .login-card .subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }

    .text-end a {
        font-size: 0.7rem;
    }

    .btn-gradient {
        padding: 0.45rem;
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
}
.toggle-password {
    position: absolute;
    right: 15px;
    top: 38px;
    cursor: pointer;
    color: #999;
    transition: 0.2s;
}

    .toggle-password:hover {
        color: #333;
    }
/* PASSWORD TOGGLE BUTTON */
.password-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 75%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #999;
    cursor: pointer;
    z-index: 5;
    transition: color 0.2s ease;
}

    .password-toggle-btn:hover,
    .password-toggle-btn:focus,
    .password-toggle-btn:active {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #333;
        outline: none;
    }

    .password-toggle-btn i {
        font-size: 1rem;
    }

/* Prevent text from going under the icon */
.password-wrapper .form-control {
    padding-right: 2.5rem;
}