/* =================================
   PLACEWICK — ADMIN LOGIN
   (restricted staff/admin access gate,
   deliberately distinct from the public
   login/sign-up styling)
================================= */

:root {

    --primary: #3155F5;
    --primary-dark: #243FC2;

    --text: #101A43;
    --text-light: #667085;

    --background: #FFFFFF;

    --border: #E5E7EB;

    --danger: #F04438;
    --danger-bg: #FEECEB;

    --warning: #F28C28;
    --warning-bg: #FFF3E8;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

}


/* =================================
   RESET
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Manrope", sans-serif;
    color: var(--text);
    line-height: 1.6;
}


img {
    max-width: 100%;
    display: block;
}


a {
    text-decoration: none;
    color: inherit;
}


button,
input,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


/* =================================
   PAGE — dark restricted-access backdrop
================================= */

.admin-login-page {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px 20px;

    background-color: #0B1130;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(49, 85, 245, 0.28), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(108, 76, 246, 0.22), transparent 45%);
}


.admin-login-container {
    width: 100%;
    max-width: 440px;

    padding: 42px 40px 34px;

    background-color: var(--background);

    border-radius: var(--radius-lg);

    box-shadow: 0 24px 60px rgba(4, 8, 30, 0.45);
}


/* =================================
   LOGO + RESTRICTED BADGE
================================= */

.admin-login-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;

    margin-bottom: 22px;
}


.admin-login-top .logo img {
    width: 130px;
}


.restricted-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 6px 13px;

    background-color: #101A43;

    border-radius: 999px;

    color: #FFFFFF;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.05em;
    text-transform: uppercase;
}


.restricted-badge i {
    font-size: 11px;

    color: #F2B33D;
}


/* =================================
   HEADER
================================= */

.admin-login-header {
    text-align: center;

    margin-bottom: 26px;
}


.admin-login-header h1 {
    margin-bottom: 8px;

    font-size: 23px;
    font-weight: 800;

    color: var(--text);

    letter-spacing: -0.5px;
}


.admin-login-header p {
    max-width: 340px;

    margin: 0 auto;

    color: var(--text-light);

    font-size: 14.5px;
    line-height: 1.6;
}


/* =================================
   FORM
================================= */

.admin-login-form {
    width: 100%;
}


.form-group {
    width: 100%;

    margin-bottom: 18px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 700;

    color: var(--text);
}


.input-wrapper {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;

    background-color: #FFFFFF;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


.input-wrapper:focus-within {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(49, 85, 245, 0.10);
}


.input-wrapper i {
    padding-left: 14px;

    color: #98A2B3;

    font-size: 14px;
}


.input-wrapper input {
    width: 100%;

    padding: 12px 14px;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text);

    font-size: 15px;
}


.input-wrapper input::placeholder {
    color: #98A2B3;
}


.password-toggle {
    padding: 0 14px;

    background: transparent;
    border: none;

    color: #98A2B3;

    font-size: 14px;

    transition: color 0.2s ease;
}


.password-toggle:hover {
    color: var(--text-light);
}


/* =================================
   FORM ERROR
================================= */

.admin-login-error {
    display: none;

    align-items: flex-start;
    gap: 9px;

    padding: 12px 14px;

    margin-bottom: 18px;

    background-color: var(--danger-bg);

    border-radius: var(--radius-sm);

    color: var(--danger);

    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
}


.admin-login-error.is-visible {
    display: flex;
}


.admin-login-error i {
    margin-top: 2px;

    flex-shrink: 0;
}


/* =================================
   OPTIONS ROW
================================= */

.admin-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 24px;
}


.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 13.5px;

    color: var(--text-light);
}


.remember-row input[type="checkbox"] {
    width: 15px;
    height: 15px;

    accent-color: var(--primary);
}


.forgot-link {
    font-size: 13.5px;
    font-weight: 700;

    color: var(--primary);
}


.forgot-link:hover {
    text-decoration: underline;
}


/* =================================
   SIGN-IN BUTTON
================================= */

.admin-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;

    padding: 13px;

    background-color: var(--primary);

    border: none;
    border-radius: var(--radius-sm);

    color: #FFFFFF;

    font-size: 15.5px;
    font-weight: 700;

    transition: 0.2s ease;
}


.admin-login-button:hover {
    background-color: var(--primary-dark);

    transform: translateY(-1px);
}


/* =================================
   FOOTNOTE
================================= */

.admin-login-footnote {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-top: 24px;

    padding: 13px 14px;

    background-color: var(--warning-bg);

    border-radius: var(--radius-sm);
}


.admin-login-footnote i {
    margin-top: 2px;
    flex-shrink: 0;

    color: var(--warning);

    font-size: 13px;
}


.admin-login-footnote p {
    font-size: 12.5px;
    line-height: 1.6;

    color: #8A5A15;
}


.back-to-site {
    display: block;

    margin-top: 20px;

    text-align: center;

    font-size: 13.5px;
    font-weight: 700;

    color: var(--text-light);
}


.back-to-site:hover {
    color: var(--text);
}


/* =================================
   MOBILE
================================= */

@media (max-width: 520px) {

    .admin-login-container {
        padding: 32px 24px 26px;

        border-radius: var(--radius-md);
    }

    .admin-login-header h1 {
        font-size: 21px;
    }

    .admin-login-options {
        flex-direction: column;
        align-items: flex-start;
    }

}
