@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500&display=swap');

:root {
    --brand: #d76b00;
    --brand-dark: #9b4300;
    --ink: #1f2933;
    --muted: #6b7280;
    --line: #e4e7ec;
    --panel: #ffffff;
    --page: #f4f6f8;
    --soft: #fff4e7;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Tajawal', sans-serif;
    color: var(--ink);
    background: var(--page);
}

.login-page {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(215, 107, 0, 0.08), transparent 42%),
        linear-gradient(180deg, #fffaf4 0%, #eef2f5 100%);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.login-card {
    width: min(960px, 100%);
    min-height: 520px;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(31, 41, 51, 0.12);
}

.login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
    padding: 42px;
    color: #fff;
    background:
        linear-gradient(rgba(72, 34, 8, 0.72), rgba(72, 34, 8, 0.72)),
        url('https://a77mad.com/uploads/photo_6023761791387029201_y.jpg') center/cover no-repeat;
}

.brand-mark {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-kicker,
.brand-copy,
.login-heading p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.8;
}

.login-brand-panel h1 {
    margin: 10px 0 12px;
    font-size: 34px;
    line-height: 1.4;
    font-weight: 700;
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.login-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.login-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--brand);
    background: var(--soft);
    border-radius: 8px;
    font-size: 22px;
}

.login-heading h2 {
    margin: 0 0 4px;
    font-size: 28px;
    font-weight: 700;
}

.login-heading p {
    color: var(--muted);
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    color: var(--danger);
    background: #fff1f0;
    border: 1px solid #fecdca;
    border-radius: 8px;
    font-weight: 500;
}

.login-form {
    display: grid;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 8px;
    margin: 0;
    font-weight: 600;
}

.input-shell {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    color: var(--muted);
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.input-shell:focus-within {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(215, 107, 0, 0.12);
}

.input-shell input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
}

::placeholder {
    color: #98a2b3;
}

.login-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.login-button:hover,
.login-button:focus-visible {
    background: var(--brand-dark);
    box-shadow: 0 14px 30px rgba(215, 107, 0, 0.22);
}

.login-button:active {
    transform: translateY(1px);
}

@media only screen and (max-width: 820px) {
    .login-shell {
        padding: 18px;
        place-items: stretch;
    }

    .login-card {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: 230px;
        padding: 28px;
    }

    .login-brand-panel h1 {
        font-size: 26px;
    }

    .login-form-panel {
        padding: 30px 22px;
    }

    .login-heading h2 {
        font-size: 24px;
    }
}
