﻿/* =============================================
   Talapde Masale — Login Page CSS (Card Layout)
   File: CSS/Login.css
   ============================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ================================================
   PAGE BACKGROUND
   ================================================ */

.page-bg {
    min-height: 100vh;
    background: #6b0000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* ================================================
   OUTER CARD — wraps both panels
   ================================================ */

.login-card {
    display: flex;
    width: 100%;
    max-width: 955px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

/* ================================================
   LEFT PANEL — Brand
   ================================================ */

.l-panel {
    width: 46%;
    background: #7b0000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.75rem 1.75rem;
    position: relative;
    overflow: hidden;
}

.spice-pattern {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(7, 1fr);
    align-items: center;
    justify-items: center;
    font-size: 22px;
    opacity: 0.06;
    pointer-events: none;
}

.l-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
}

.logo-circle {
    width: 100px;
    height: 78px;
    /*border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);*/
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
}

    .logo-circle i {
        font-size: 32px;
        color: #ffffff;
    }

.l-name {
    font-size: 19px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.l-tag {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.l-sep {
    width: 32px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 1px;
    margin: 0 auto 1.5rem auto;
}

.badge-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.spice-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.09);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    padding: 8px 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
}

    .spice-badge i {
        font-size: 13px;
        opacity: 0.75;
    }

/* ================================================
   RIGHT PANEL — Form
   ================================================ */

.r-panel {
    flex: 1;
    padding: 2.75rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.r-head {
    margin-bottom: 0.5rem;
}

    .r-head h2 {
        font-size: 22px;
        font-weight: 600;
        color: #1a0505;
        margin-bottom: 4px;
    }

    .r-head p {
        font-size: 13px;
        color: #999999;
    }

.accent-bar {
    width: 30px;
    height: 2.5px;
    background: #7b0000;
    border-radius: 2px;
    margin: 0.85rem 0 1.5rem 0;
}

/* ---- Field Labels ---- */

.field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #aaaaaa;
    margin-bottom: 5px;
}

/* ---- Input Fields ---- */

.field-wrap {
    position: relative;
    margin-bottom: 1.1rem;
}

.field-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #cccccc;
    pointer-events: none;
    z-index: 1;
}

.field-input {
    width: 100%;
    padding: 10px 34px 10px 34px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 13px;
    color: #222222;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

    .field-input:focus {
        border-color: #7b0000;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(123, 0, 0, 0.08);
    }

/* ---- Validator ---- */

.validator-star {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b0000;
    font-weight: 700;
    font-size: 14px;
}

/* ---- Remember Me & Forgot ---- */

.row-opts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.chk-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666666;
    cursor: pointer;
}

    .chk-label input[type="checkbox"] {
        accent-color: #7b0000;
        width: 13px;
        height: 13px;
        cursor: pointer;
    }

.forgot-link {
    font-size: 12px;
    color: #7b0000;
    font-weight: 500;
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

/* ---- Sign In Button ---- */

.btn-signin {
    width: 100%;
    background: #7b0000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background 0.2s ease;
    display: block;
}

    .btn-signin:hover {
        background: #5c0000;
    }

    .btn-signin:active {
        transform: scale(0.98);
    }

/* ---- OR Divider ---- */

.or-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}

    .or-divider hr {
        flex: 1;
        border: none;
        border-top: 0.5px solid #ececec;
    }

    .or-divider span {
        font-size: 11px;
        color: #cccccc;
        white-space: nowrap;
    }

/* ---- Ghost Buttons ---- */

.btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /*width: 100%;*/
    padding: 9px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #ffffff;
    color: #666666;
    font-size: 12px;
    text-decoration: none;
    margin-bottom: 7px;
    transition: border-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

    .btn-ghost i {
        font-size: 13px;
    }

    .btn-ghost:hover {
        border-color: #7b0000;
        color: #7b0000;
    }

/* ================================================
   RESPONSIVE — Mobile
   ================================================ */

@media (max-width: 640px) {
    .login-card {
        flex-direction: column;
        max-width: 420px;
        border-radius: 16px;
    }

    .l-panel {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .badge-list {
        display: none;
    }

    .logo-circle {
        width: 64px;
        height: 64px;
    }

        .logo-circle i {
            font-size: 26px;
        }

    .l-name {
        font-size: 17px;
    }

    .r-panel {
        padding: 2rem 1.5rem;
    }

    .row-opts {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
