
/* ==========================================
   TENGKEE HARDWARE STORE
   PROFESSIONAL AUTHENTICATION DESIGN
========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #111c2e;
    --navy-dark: #0a1322;
    --orange: #f58220;
    --orange-dark: #e66c0b;
    --text: #17243a;
    --muted: #7b879a;
    --border: #e2e7ef;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: #f4f6fa;
    color: var(--text);
}

a {
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.auth-page {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at top left,
            rgba(245,130,32,.13),
            transparent 38%
        ),
        #f4f6fa;
}

.auth-container {
    width: 100%;
    max-width: 1120px;
    min-height: 680px;
    background: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(16,28,48,.12);
}

/* LEFT BRAND PANEL */

.auth-brand-panel {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(245,130,32,.18),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            #1b2b45,
            #0a1424
        );

    padding: 42px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand {
    text-align: center;
}

.auth-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    margin-bottom: 10px;
}

.auth-brand h1 {
    font-size: 29px;
    font-weight: 800;
    letter-spacing: 1px;
}

.auth-brand h1 span {
    color: var(--orange);
}

.auth-brand > p {
    color: #d2dbea;
    font-size: 11px;
    letter-spacing: 3px;
    margin-top: 4px;
}

.auth-welcome {
    margin: 55px 0;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(245,130,32,.4);
    background: rgba(245,130,32,.12);
    border-radius: 30px;
    color: #ffb778;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.welcome-badge svg {
    width: 16px;
}

.auth-welcome h2 {
    margin-top: 23px;
    font-size: clamp(29px,3vw,40px);
    line-height: 1.25;
    letter-spacing: -1px;
}

.auth-welcome h2 span {
    display: block;
    color: var(--orange);
}

.auth-welcome > p {
    color: #b5c1d2;
    font-size: 13px;
    line-height: 1.9;
    margin-top: 18px;
    max-width: 400px;
}

.auth-features {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.auth-features > div {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #e0e7f2;
    font-size: 12px;
}

.auth-features svg {
    color: var(--orange);
    width: 19px;
    height: 19px;
}

.auth-brand-footer {
    color: #8997ac;
    font-size: 11px;
    text-align: center;
}

/* RIGHT FORM PANEL */

.auth-form-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 45px;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 390px;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #748196;
    font-size: 12px;
    margin-bottom: 36px;
}

.back-home svg {
    width: 16px;
}

.back-home:hover {
    color: var(--orange);
}

.form-heading {
    margin-bottom: 28px;
}

.form-icon {
    width: 53px;
    height: 53px;
    background: #fff0e4;
    border-radius: 13px;
    color: var(--orange);
    display: grid;
    place-items: center;
    margin-bottom: 19px;
}

.form-icon svg {
    width: 26px;
    height: 26px;
}

.form-heading h2 {
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.form-heading p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper > svg {
    position: absolute;
    left: 14px;
    color: #8c98aa;
    width: 18px;
    height: 18px;
}

.input-wrapper input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    background: #fafbfe;
    border-radius: 9px;
    padding: 0 45px;
    outline: none;
    color: var(--text);
    font-size: 12px;
    transition: .2s;
}

.input-wrapper input:focus {
    background: white;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(245,130,32,.10);
}

.password-toggle {
    position: absolute;
    right: 13px;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    color: #8c98aa;
}

.password-toggle svg {
    width: 18px;
}

.auth-submit {
    width: 100%;
    height: 49px;
    background: linear-gradient(
        90deg,
        #fa902d,
        #f27616
    );
    border: none;
    border-radius: 9px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: .2s;
}

.auth-submit:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

.auth-submit svg {
    width: 17px;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    margin-bottom: 20px;
    border-radius: 9px;
    background: #fff0f0;
    color: #d93443;
    font-size: 12px;
    line-height: 1.5;
}

.auth-alert svg {
    width: 18px;
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 27px 0 22px;
    color: #9aa5b5;
    font-size: 10px;
    letter-spacing: .7px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: var(--border);
    flex: 1;
}

.auth-switch {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

.auth-switch a {
    color: var(--orange);
    font-weight: 700;
    margin-left: 4px;
}

.auth-security {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 35px;
    color: #96a2b2;
    font-size: 11px;
}

.auth-security svg {
    width: 16px;
    color: #12a879;
}

/* RESPONSIVE DESIGN */

@media (max-width: 850px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .auth-brand-panel {
        padding: 30px;
    }

    .auth-welcome,
    .auth-brand-footer {
        display: none;
    }

    .auth-form-panel {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 0;
    }

    .auth-container {
        min-height: 100vh;
        border-radius: 0;
    }

    .auth-form-panel {
        padding: 32px 22px;
    }

    .form-heading h2 {
        font-size: 26px;
    }
}

body {
    -webkit-font-smoothing: antialiased;
}

.auth-container {
    border: 1px solid rgba(226, 231, 239, .8);
    box-shadow: 0 28px 90px rgba(16, 28, 48, .14);
}

.auth-brand-panel {
    background:
        radial-gradient(circle at 82% 18%, rgba(245, 130, 32, .2), transparent 42%),
        linear-gradient(145deg, #1d2b42 0%, #0a1424 80%);
}

.auth-form-panel {
    background:
        radial-gradient(circle at 100% 0, rgba(245, 130, 32, .035), transparent 35%),
        #fff;
}

.input-wrapper input,
.input-wrapper textarea {
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(245, 130, 32, .12);
}

.auth-submit {
    box-shadow: 0 8px 18px rgba(230, 108, 11, .2);
}

.auth-submit:focus-visible,
.back-home:focus-visible,
.auth-switch a:focus-visible {
    outline: 3px solid rgba(245, 130, 32, .35);
    outline-offset: 3px;
}
