/* ========== GLOBAL RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #ff7200;
    --primary-orange-hover: #d86507;
    --text-dark: #1a1a2e;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-cream: #fef7ed;
    --border-color: #e5e7eb;
    --success-green: #10b981;
    --error-red: #ef4444;
    --sidebar-hover: #fff5eb;
    --sidebar-active: #fff5eb;
    --input-bg: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.5;
}

/* Auth Header */
.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo img {
    height: 32px;
    width: auto;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.download-link:hover {
    color: var(--primary-orange);
}

.download-link svg {
    width: 18px;
    height: 18px;
}

/* Auth Layout - Flex Row */
.auth-layout {
    display: flex;
    min-height: calc(100vh - 73px);
}

/* LEFT SIDE - ILLUSTRATION (hidden on mobile) */
.auth-left {
    flex: 1;
    background: var(--bg-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-illustration {
    max-width: 480px;
    margin-bottom: 2rem;
}

.auth-illustration img {
    width: 100%;
    height: auto;
}

.auth-tagline {
    text-align: center;
    max-width: 450px;
}

.auth-tagline h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.auth-tagline h2 span {
    color: var(--primary-orange);
}

.auth-tagline p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* RIGHT SIDE - LOGIN FORM */
.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 3rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.auth-form {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.auth-form h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-input-icon {
    position: relative;
}

.form-input-icon .icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.form-input-icon .icon-right {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    padding: 0;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

/* Forgot Password Link */
.forgot-link {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-link a {
    color: var(--primary-orange);
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-orange);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-orange-hover);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem;
    font-size: 1rem;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Google Sign In Button */
.google-signin {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    background: var(--bg-white);
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.google-signin:hover {
    border-color: var(--primary-orange);
    background: var(--bg-cream);
}

.user-info {
    flex: 1;
    text-align: left;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* Footer text */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

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

.auth-footer a:hover {
    text-decoration: underline;
}

/* ========== RESPONSIVE: HIDE AUTH-LEFT ON MOBILE ========== */
@media (max-width: 768px) {
    .auth-left {
        display: none !important;
    }

    .auth-layout {
        flex-direction: column;
    }

    .auth-right {
        max-width: 100%;
        padding: 2rem 1.5rem;
        min-height: calc(100vh - 70px);
    }

    .auth-form {
        max-width: 100%;
    }

    .auth-form h1 {
        font-size: 1.75rem;
        margin-bottom: 1.75rem;
    }

    .auth-header {
        padding: 1rem 1.25rem;
    }

    .logo img {
        height: 28px;
    }
}

/* Tablet optimization: left side slightly smaller but still visible */
@media (max-width: 1024px) and (min-width: 769px) {
    .auth-left {
        padding: 1.5rem;
    }

    .auth-tagline h2 {
        font-size: 1.5rem;
    }

    .auth-right {
        padding: 2rem;
    }
}

/* Additional smoothness */
.password-toggle:hover {
    color: var(--primary-orange);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Country Select Styling */
.country-select-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.country-select-wrapper:focus-within {
    border-color: var(--primary-orange);
    box-shadow: var(--focus-shadow);
}

.country-flag {
    padding: 0.875rem 1rem;
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.country-select {
    flex: 1;
    border: none;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: inherit;
    cursor: pointer;
}

.country-select:focus {
    outline: none;
}

/* Phone Input */
.phone-input {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.phone-input:focus-within {
    border-color: var(--primary-orange);
    box-shadow: var(--focus-shadow);
}

.country-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.country-code span:first-child {
    font-size: 1.25rem;
}

.country-code svg {
    width: 14px;
    height: 14px;
    color: var(--text-gray);
}

.phone-input input {
    flex: 1;
    border: none;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-dark);
}

.phone-input input:focus {
    outline: none;
}

/* Password Requirements */
.password-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.7rem;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-gray);
}

.req-item.valid {
    color: var(--success-green);
}

.req-item.invalid {
    color: var(--text-light);
}

/* Error Message */
.error-message {
    color: var(--error-red);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.terms-checkbox input {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-orange);
    cursor: pointer;
}

.terms-checkbox label {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.terms-checkbox a {
    color: var(--primary-orange);
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}