/* ==========================================================================
   SHOPSQ ADMIN LOGIN STYLES (Split Layout Redesign)
   ========================================================================== */

:root {
    --primary-green: #059669;
    --primary-green-hover: #047857;
    --text-dark: #1f2937;
    --text-muted: #9ca3af;
    --border-light: #e5e7eb;
    --bg-white: #ffffff;
}

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

/* Hide native browser password reveal eye icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-white);
}

.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ── LEFT PANEL (Image & Copy) ───────────────────────────────────────────── */
.login-left {
    flex: 1;
    background-image: url('/images/desk_bg_2.png');
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #f3f4f6;
}

.left-content {
    text-align: left;
    padding: 40px;
    margin-left: 20%;
}

.left-logo {
    width: 140px;
    margin-bottom: 30px;
}

.left-heading {
    font-size: 56px;
    line-height: 1.15;
    font-weight: 300; /* Thin font for 'Your All Service' */
    color: #374151;
    letter-spacing: -1px;
}

.left-heading .highlight-green {
    color: var(--primary-green);
    font-weight: 700;
}

/* ── RIGHT PANEL (Form) ─────────────────────────────────────────────────── */
.login-right {
    flex: 0 0 450px; /* Fixed width or flexible */
    min-width: 450px;
    background-color: var(--bg-white);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .login-left { display: none; }
    .login-right { flex: 1; min-width: 100%; }
}

.version-pill {
    position: absolute;
    top: 24px;
    right: 24px;
    border: 1px solid #6ee7b7;
    color: #059669;
    background: #ecfdf5;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.form-container {
    width: 100%;
    max-width: 360px;
    padding: 20px;
}

.login-header {
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ── FORM ELEMENTS ──────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 13px;
    color: #111827;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper i {
    position: absolute;
    right: 14px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
}

/* Checkbox & Links */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 11px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    cursor: pointer;
}

.forgot-pwd {
    color: #0284c7; /* Blue link */
    text-decoration: none;
    font-weight: 600;
}

.forgot-pwd:hover {
    text-decoration: underline;
}

/* Button */
.btn-login {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    background-color: var(--primary-green-hover);
}

.spin {
    animation: spin 1s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── TOAST OVERRIDES (If needed for white background) ───────────────────── */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.shopsq-toast {
    background: #111827;
    color: white;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.shopsq-toast.show {
    transform: translateX(0);
}
