/* =====================================================
   Bookmark2551 - Login Page Restyle (Green/Yellow theme)
   File: css/login.css  -  loaded by MasterPage1.master
   ASCII only. Uses !important to override inline styles
   rendered by the precompiled code-behind.
   ===================================================== */

* { box-sizing: border-box; }

html, body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100%;
}

body {
    font-family: 'Sarabun', 'TH Sarabun New', 'Leelawadee UI', Tahoma, sans-serif !important;
    background: #14532D !important;
    background-image: linear-gradient(160deg, #14532D 0%, #2E7D32 48%, #9CCC3C 100%) !important;
    background-attachment: fixed !important;
    color: #3B1F2E;
}

/* ---------- Page shell ---------- */
.lg-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px 28px 16px;
    min-height: 100vh;
    display: block;
}

/* ---------- Top banner ---------- */
.lg-topbar {
    text-align: center;
    padding: 30px 20px 8px 20px;
    position: relative;
}

.lg-topbar-title {
    font-size: 30px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(10, 40, 16, 0.45);
}

.lg-topbar-sub {
    font-size: 15px;
    color: #E6EE9C;
    margin-top: 4px;
}

.lg-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 12px;
    text-decoration: none;
}

.lg-badge:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- Login card ---------- */
.lg-card {
    background: #FFFFFF;
    max-width: 470px;
    margin: 58px auto 16px auto;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(8, 35, 15, 0.38);
    padding: 30px 34px 26px 34px;
    text-align: center;
}

/* avatar image (Image1) */
.lg-avatar {
    width: 92px;
    height: 92px;
    margin: -66px auto 12px auto;
    border-radius: 50%;
    background: #FFFFFF;
    border: 4px solid #E8F5D0;
    box-shadow: 0 8px 20px rgba(8, 35, 15, 0.30);
    overflow: hidden;
    display: block;
}

.lg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* school names (Label1 / Label5) */
.lg-school {
    display: block !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1B5E20 !important;
    font-family: inherit !important;
    line-height: 1.35 !important;
}

.lg-school-en {
    display: block !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #7C9473 !important;
    font-family: inherit !important;
    margin-top: 1px;
}

/* semester pill (Label2) */
.lg-pill {
    display: inline-block !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #33691E !important;
    font-family: inherit !important;
    background: #F4FADF;
    border: 1px solid #DCEDC8;
    border-radius: 999px;
    padding: 5px 18px;
    margin: 10px 0 4px 0;
}

/* ---------- Form ---------- */
.lg-form { margin-top: 14px; text-align: left; }

.lg-field { margin-bottom: 14px; }

.lg-label {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: #2F4A2F;
    margin-bottom: 5px;
}

input.lg-input {
    width: 100% !important;
    height: 46px !important;
    font-family: inherit !important;
    font-size: 17px !important;
    color: #3B1F2E !important;
    background: #FAFCF2 !important;
    border: 1.5px solid #D9E7C0 !important;
    border-radius: 11px !important;
    padding: 0 14px !important;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input.lg-input:focus {
    border-color: #689F38 !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 3.5px rgba(104, 159, 56, 0.20);
}

/* hint box */
.lg-hint {
    text-align: left;
    font-size: 13.5px;
    line-height: 1.55;
    color: #7A6208;
    background: #FFFDE7;
    border: 1px solid #F5EBA6;
    border-left: 4px solid #F9A825;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 4px 0 16px 0;
}

.lg-hint b { color: #8D6708; }

/* ---------- Buttons (Button1 / Button2) ---------- */
input.lg-btn {
    display: block;
    width: 100% !important;
    height: 52px !important;
    font-family: inherit !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #2E7D32, #7CB342) !important;
    border: none !important;
    border-radius: 13px !important;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(27, 94, 32, 0.35);
    transition: filter 0.15s, transform 0.1s;
    margin: 0 auto;
}

input.lg-btn:hover { filter: brightness(1.12); }
input.lg-btn:active { transform: translateY(1px); }

input.lg-btn-alt {
    background: linear-gradient(135deg, #F9A825, #FBC02D) !important;
    margin-top: 10px;
}

/* ---------- Meta (Label3 update date / Label4 counter) ---------- */
.lg-meta {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #E4EFCB;
}

.lg-meta-txt {
    display: inline-block !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #86986F !important;
    font-family: inherit !important;
    margin: 0 6px;
}

/* ---------- Footer credit ---------- */
.lg-credit {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    padding: 4px 10px 10px 10px;
    line-height: 1.5;
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
    .lg-topbar { padding-top: 22px; }
    .lg-topbar-title { font-size: 22px; }
    .lg-card { padding: 24px 20px 20px 20px; margin-top: 52px; }
    .lg-avatar { margin-top: -58px; }
    .lg-school { font-size: 19px !important; }
}
