﻿/* =========================================================
   BAKER'S SQUARE - Login page (styling only)
   Load after sb-admin-2.min.css
   ========================================================= */

/* ---------- Page background ---------- */
html { height: 100%; }

body.bg-primary {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    background: #fff8f3 !important;
    font-family: "Nunito", -apple-system, "Segoe UI", sans-serif;
}

#form1 { width: 100%; position: relative; z-index: 1; }

.container.bg-primary { background: transparent !important; }

/* soft pastel blobs behind the card */
body.bg-primary::before,
body.bg-primary::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body.bg-primary::before {
    width: 420px;
    height: 420px;
    top: -140px;
    left: -120px;
    background: #ffe1e8;
}

body.bg-primary::after {
    width: 360px;
    height: 360px;
    bottom: -120px;
    right: -100px;
    background: #fff0cf;
}

/* ---------- Card ---------- */
.card.o-hidden {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(74, 44, 29, .14) !important;
    margin: 2rem 0 !important;
}

/* candy stripe on top of the card */
.card.o-hidden::before {
    content: "";
    display: block;
    height: 6px;
    background: repeating-linear-gradient(90deg,
        #ff8fab 0 40px, #ffd166 40px 80px, #9be564 80px 120px,
        #8ecae6 120px 160px, #c8a2f5 160px 200px);
}

/* ---------- Left image panel ---------- */
.card-body .row > .col-lg-6.d-lg-block {
    position: relative;
    min-height: 520px;
}

.card-body .row > .col-lg-6.d-lg-block::after {
  
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 70px 28px 28px;
    background: linear-gradient(to top, rgba(74, 44, 29, .72), rgba(74, 44, 29, 0));
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .02em;
}

/* ---------- Right form panel ---------- */
.card-body .p-5 { padding: 3rem 2.75rem !important; }

.text-center h2 {
    margin: 0;
    font-family: "Nunito", sans-serif !important;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: .06em;
    color: #4a2c1d;
    text-decoration: none !important;
}

.text-center h2::before {
    content: "\f1fd";
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #ffe1e8;
    color: #e0457b;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.6rem;
    line-height: 64px;
    letter-spacing: 0;
}

.text-center h2::after {
    content: "Sign in to continue";
    display: block;
    margin-top: .45rem;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: 0;
    color: #a58471;
}

/* wrong password message (shown by your script) */
#warn.alert-danger {
    margin-bottom: 1.2rem;
    padding: .8rem 1rem;
    border: 1px solid #f5c2c2;
    border-radius: 12px;
    background: #fff1f1;
    color: #c92a2a;
    font-size: .88rem;
    text-align: center;
}

/* ---------- Inputs ---------- */
.user .form-group { margin-bottom: 1rem; }

.user .form-control-user {
    height: auto;
    min-height: 52px;
    padding: .8rem 1.1rem .8rem 3rem;
    font-size: 1rem;
    color: #4a2c1d;
    background-color: #fffdf9;
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 20px;
    border: 1px solid #ecd9c6;
    border-radius: 14px !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.user .form-control-user::placeholder { color: #b59a88; }

.user .form-control-user:focus {
    background-color: #fff;
    border-color: #e0457b;
    box-shadow: 0 0 0 .2rem rgba(224, 69, 123, .15);
}

#username {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9822b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
}

#pass {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9822b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

/* ---------- Login button ---------- */
.user .btn-user.btn-block {
    min-height: 52px;
    margin-top: .4rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: #fff;
    background: #e0457b;
    border: none;
    border-radius: 14px !important;
    box-shadow: 0 8px 18px rgba(224, 69, 123, .3);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.user .btn-user.btn-block:hover {
    background: #c2255c;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(194, 37, 92, .32);
}

.user .btn-user.btn-block:active { transform: translateY(0); }

.user .btn-user.btn-block:focus { box-shadow: 0 0 0 .2rem rgba(224, 69, 123, .3); }

/* ---------- Footer text ---------- */
.user hr { margin: 1.6rem 0 1rem; border-top: 1px solid #f1e3d3; }

.user label {
    display: block;
    margin: 0;
    text-align: center;
    color: #a58471;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
}

/* =========================================================
   TABLET AND MOBILE
   ========================================================= */
@media (max-width: 991.98px) {
    .card-body .p-5 { padding: 2.5rem 2rem !important; }
}

@media (max-width: 575.98px) {
    body.bg-primary { align-items: flex-start; }
    .card.o-hidden { margin: 1rem 0 !important; border-radius: 20px; }
    .card-body .p-5 { padding: 1.75rem 1.25rem !important; }
    .text-center h2 { font-size: 1.5rem; }
    .text-center h2::before { width: 54px; height: 54px; line-height: 54px; font-size: 1.35rem; }
    body.bg-primary::before { width: 280px; height: 280px; }
    body.bg-primary::after { width: 240px; height: 240px; }
}