/* =========================================================
   TOYPANEL LOGIN PAGE
   Frontend only
   Professional, compact, dashboard-matching login UI
   ========================================================= */

:root {
    --primary: #2f67f6;
    --primary-dark: #2457dc;
    --heading: #132d56;
    --text: #5f718f;
    --label: #1b3765;
    --input-text: #17345d;
    --input-placeholder: #94a3ba;

    --card-bg: rgba(255, 255, 255, 0.72);
    --card-border: rgba(255, 255, 255, 0.58);

    --input-bg: rgba(255, 255, 255, 0.78);
    --input-border: rgba(158, 181, 221, 0.45);
    --input-border-hover: rgba(91, 132, 227, 0.35);
    --input-border-focus: rgba(47, 103, 246, 0.48);

    --shadow-card: 0 24px 70px rgba(17, 40, 85, 0.16);
    --shadow-button: 0 14px 28px rgba(47, 103, 246, 0.24);

    --radius-card: 15px;
    --radius-input: 10px;
    --radius-button: 10px;
}

/* ------------------------------
   Base reset
------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

/* ------------------------------
   Body and wallpaper background
------------------------------ */
body.login-body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    color: var(--heading);
    min-height: 100vh;
    margin: 0;
    position: relative;
    overflow: hidden;

    /* Exact center alignment */
    display: flex;
    align-items: center;
    justify-content: center;

    /* IMPORTANT:
       This CSS file is inside /css/
       So images folder path should go one level up.
    */
    background: url("../images/wallpaper.png") center center / cover no-repeat fixed;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px; /* Positions icon inside the box */
    color: #94a3b8;
    width: 20px;
    height: 20px;
}

.login-control {
    padding-left: 40px !important; /* Makes room for the icon on the left */
    width: 100%;
}

/* ------------------------------
   Page wrapper
------------------------------ */
.login-page {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ------------------------------
   Main login card
------------------------------ */
.login-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

/* Slim top accent line */
.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
}

.login-inner {
    padding: 30px 30px 24px;
}

/* ------------------------------
   Top brand row
------------------------------ */
.login-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 26px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 8px 18px rgba(47, 103, 246, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.65);
}

.brand-text {
    min-width: 0;
}

.brand-kicker {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a8ca8;
}

.brand-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f2950;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
	background: #e6f9f0;
    border: 0.5px solid #6fcf97;
    color: #1a8a4a;
}

.secure-badge i {
    font-size: 12px;
}

/* ------------------------------
   Heading section
------------------------------ */
.login-heading {
    margin-bottom: 22px;
}

.login-heading h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--heading);
}

.login-heading p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
}

/* ------------------------------
   Form
------------------------------ */
.login-form {
    margin: 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--label);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle-btn {
    border: 0;
    background: transparent;
    color: #94a3ba;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: color 0.22s ease;
    flex-shrink: 0;
}

.password-toggle-btn:hover {
    color: var(--label);
    background: transparent;
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--label);
    background: transparent;
    box-shadow: none;
}

.password-toggle-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}


.password-toggle-btn--inside {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    z-index: 2;
}

.login-control--password {
    padding-right: 46px !important;
}

/* Override Bootstrap form-control feel with sharper custom styling */
.login-card .login-control.form-control {
    height: 52px;
    border-radius: var(--radius-input);
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 15px;
    font-weight: 500;
    padding: 0 16px;
    box-shadow: none;
    transition: all 0.22s ease;
}

.login-card .login-control.form-control::placeholder {
    color: var(--input-placeholder);
    font-weight: 500;
}

.login-card .login-control.form-control:hover {
    border-color: var(--input-border-hover);
    background: rgba(255, 255, 255, 0.9);
}

.login-card .login-control.form-control:focus {
    border-color: var(--input-border-focus);
    background: rgba(255, 255, 255, 0.96);
    color: var(--input-text);
    box-shadow: 0 0 0 4px rgba(47, 103, 246, 0.10);
}

/* Remove Bootstrap focus shadow from button/input conflicts */
.login-card .form-control:focus,
.login-card .btn:focus,
.login-card .btn:active:focus {
    outline: none;
}

/* ------------------------------
   Button
------------------------------ */
.login-btn {
    width: 100%;
    height: 52px;
    margin-top: 6px;
    border: none;
    border-radius: var(--radius-button);
    background: linear-gradient(135deg, #2f67f6 0%, #2457dc 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-button);
    transition: all 0.22s ease;
}

/* Fix button text + arrow alignment */
.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;              /* space between text and arrow */
    line-height: 1;
}

/* Feather icon becomes SVG, so target svg */
.login-btn svg {
    width: 25px;
    height: 25px;
    display: block;
    flex-shrink: 0;
    stroke-width: 2.2;
}

.login-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(47, 103, 246, 0.26);
    background: linear-gradient(135deg, #3a71fb 0%, #2559df 100%);
}

.login-btn:active {
    color: #ffffff;
    transform: translateY(0);
}

.login-btn:focus {
    color: #ffffff;
    box-shadow:
        0 18px 30px rgba(47, 103, 246, 0.22),
        0 0 0 4px rgba(47, 103, 246, 0.12);
}

/* ------------------------------
   Footer text
------------------------------ */
.footer-note {
    margin-top: 16px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 500;
    color: #7f90ab;
}

/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 575.98px) {
    .login-page {
        padding: 16px 12px;
    }

    .login-card {
        max-width: 100%;
        border-radius: 20px;
    }

    .login-inner {
        padding: 24px 18px 20px;
    }

    .login-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 22px;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .brand-title {
        font-size: 20px;
    }

    .secure-badge {
        padding: 7px 11px;
        font-size: 11px;
    }

    .login-heading {
        margin-bottom: 20px;
    }

    .login-heading h2 {
        font-size: 24px;
    }

    .login-heading p {
        font-size: 13.5px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 12.5px;
        margin-bottom: 7px;
    }

    .login-card .login-control.form-control,
    .login-btn {
        height: 50px;
        font-size: 14.5px;
    }

    .footer-note {
        font-size: 12px;
        margin-top: 14px;
    }
}

@media (max-height: 720px) {
    body.login-body {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .login-inner {
        padding-top: 24px;
        padding-bottom: 20px;
    }

    .login-topbar {
        margin-bottom: 20px;
    }

    .login-heading {
        margin-bottom: 18px;
    }

    .form-group {
        margin-bottom: 14px;
    }
}