@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --brand-gold: #ffcc33;
    --brand-amber: #ff8c00;
    --rich-dark: #1e272e;
    --text-light: #f5f6fa;
    --text-muted: #7f8fa6;
}

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

body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: var(--rich-dark);
}

/* --- Split Layout Architecture --- */
.pos-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.branding-panel {
    flex: 1.2;
    background: linear-gradient(135deg, rgba(30, 39, 46, 0.9), rgba(47, 54, 64, 0.9)),
    var(--bg-image) center/cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem;
    color: var(--text-light);
    position: relative;
}

.branding-panel::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--brand-amber), var(--brand-gold));
    box-shadow: -2px 0 15px rgba(255, 140, 0, 0.5);
}

.brand-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--brand-gold);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.brand-header p {
    font-size: 1.2rem;
    color: #dcdde1;
    letter-spacing: 1px;
}

.system-status {
    display: flex;
    gap: 10px;
    font-weight: 500;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #4cd137;
    border-radius: 50%;
    box-shadow: 0 0 10px #4cd137;
}

/* Right Side: Secure Form Area */
.auth-panel {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6rem;
    position: relative;
    overflow-y: auto; /* Allows scrolling if register form is long */
}

.auth-header {
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2.2rem;
    color: var(--rich-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Flash Messages */
.alert-box {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.alert-danger, .alert-error {
    background: #ffeaa7;
    color: #d63031;
    border: 1px solid #d63031;
}

.alert-success {
    background: #55efc4;
    color: #00b894;
    border: 1px solid #00b894;
}

.alert-warning {
    background: #ffeaa7;
    color: #fdcb6e;
    border: 1px solid #fdcb6e;
}

/* Form Controls */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i.left-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.pos-input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    border: 2px solid #e1e5ea;
    border-radius: 12px;
    outline: none;
    color: var(--rich-dark);
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.pos-input:focus {
    border-color: var(--brand-amber);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
}

.pos-input:focus + i.left-icon {
    color: var(--brand-amber);
}

select.pos-input {
    cursor: pointer;
    appearance: none;
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.toggle-password:hover {
    color: var(--rich-dark);
}

/* Buttons & Links */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--brand-amber), #e67e22);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(230, 126, 34, 0.4);
}

.bottom-link {
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
}

.bottom-link a {
    color: var(--brand-amber);
    text-decoration: none;
    transition: 0.3s;
}

.bottom-link a:hover {
    color: #cc7000;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-panel {
        padding: 0 3rem;
    }

    .brand-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .pos-wrapper {
        flex-direction: column;
        overflow-y: auto;
    }

    .branding-panel {
        flex: none;
        padding: 2rem;
        min-height: 30vh;
    }

    .branding-panel::after {
        width: 100%;
        height: 5px;
        top: auto;
        bottom: 0;
    }

    .auth-panel {
        flex: none;
        padding: 3rem 2rem;
    }
}