:root {
    --primary-color: #0b3067;
    --dark-gray: #1a1a1a;
    --light-gray: #d0d0d0;
    --white: #ffffff;
    --bg-light: #f5f5f5;
    --success: #10b981;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #0b3067 0%, #000000 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--dark-gray);
    background: var(--white);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(420px, 520px);
}

.auth-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: var(--white);
    text-align: center;
    background: var(--gradient);
}

.auth-banner::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    transform: translate(-35%, -35%);
}

.auth-brand {
    position: relative;
    z-index: 1;
}

.auth-brand i {
    display: block;
    margin-bottom: 20px;
    font-size: 64px;
}

.auth-brand h2 {
    font-size: 34px;
    margin-bottom: 12px;
}

.auth-brand p {
    max-width: 520px;
    opacity: .85;
}

.auth-form-area {
    display: flex;
    align-items: center;
    padding: 40px;
}

.auth-card {
    width: 100%;
}

.auth-card h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 42px 12px 40px;
    border: 2px solid #e2e2e2;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    transition: .2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(11, 48, 103, .10);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #777;
}

.help-text {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 11px;
}

.field-error {
    display: block;
    margin-top: 5px;
    color: var(--danger);
    font-size: 12px;
}

.input-error {
    border-color: var(--danger) !important;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 18px;
    font-size: 13px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox input {
    margin-top: 3px;
}

.btn-submit {
    width: 100%;
    border: 0;
    border-radius: 9px;
    padding: 13px 18px;
    color: var(--white);
    background: var(--gradient);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(11, 48, 103, .22);
}

.auth-link {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
}

.auth-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 13px;
}

.alert-success {
    color: #047857;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.alert-error {
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.store-address {
    display: flex;
    align-items: stretch;
}

.store-address span {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 2px solid #e2e2e2;
    border-right: 0;
    border-radius: 9px 0 0 9px;
    background: #f6f6f6;
    color: #666;
    font-size: 12px;
    white-space: nowrap;
}

.store-address input {
    padding-left: 12px;
    border-radius: 0 9px 9px 0;
}

@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-banner {
        min-height: 240px;
        padding: 35px 20px;
    }

    .auth-form-area {
        padding: 30px 20px;
    }
}

@media (max-width: 560px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .store-address span {
        display: none;
    }

    .store-address input {
        border-radius: 9px;
    }
}
