/* Common Auth Page Styles */
body {
    background: #f2f2f2;
}
/* Modern Variables */
:root {
    --primary-color: #a3d7c9;
    --primary-dark: #53565a;
    --accent-color: #f27a1a;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Common body styles for auth pages */
.auth-page body {
    background: linear-gradient(135deg, #a3d7c9 0%, #95c5b8 100%) !important;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

/* Hide default breadcrumb */
.auth-page .page-header {
    display: none;
}

.auth-page .main.pages {
    padding: 0;
    margin: 0;
}

.auth-page .page-content {
    padding: 0;
    margin: 0;
}

/* Modern Split Layout */
.auth-page .auth-container {
    min-height: 100vh;
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-page .auth-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 700px;
}

/* Auth Visual Section */
.auth-page .auth-visual {
    background: linear-gradient(135deg, rgb(163 215 201 / 87%) 0%, rgb(163 215 201 / 59%) 100%), url(/themes/sinoz/imgs/banner/acc-img.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-page .auth-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.auth-page .visual-content {
    text-align: center;
    color: white;
    z-index: 1;
    position: relative;
    padding: 2rem;
}

.auth-page .visual-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-page .visual-icon i {
    font-size: 3rem;
    color: black;
}

.auth-page .visual-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: black;
}

.auth-page .visual-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
    color: black;
}

/* Auth Form Section */
.auth-page .auth-form {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-page .auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-page .auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-page .auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Auth Tabs */
.auth-page .auth-tabs {
    display: flex;
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 1rem;
    justify-content: center;
}

.auth-page .auth-tab {
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 6px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

.auth-page .auth-tab.active {
    border-radius: 16px;
    background: var(--Grayscale-Background-White, #FFF);
    box-shadow: 0 20px 32px -8px rgba(87, 111, 133, 0.07);
}

.auth-page .auth-tab:hover {
    text-decoration: none;
    color: var(--text-primary);
}

/* Social Buttons */
.auth-page .social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.auth-page .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-radius: 200px;
    border: 1px solid #a3d7c9;
}

.auth-page .social-btn:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
    text-decoration: none;
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.auth-page .social-btn img {
    width: 18px;
    height: 18px;
}

/* Form Elements */
.auth-page .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0rem;
}

.auth-page .form-group {
    margin-bottom: 1rem;
}

.auth-page .form-group.full-width {
    grid-column: 1 / -1;
}

.auth-page .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-radius: 8px;
    border: 1px solid #F2F2F2;
    background: #FFF;
}

.auth-page .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(163, 215, 201, 0.1);
}

.auth-page .form-input::placeholder {
    color: var(--text-secondary);
}

/* Primary Button */
.auth-page .btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #53565a;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    border-radius: 200px;
}

.auth-page .btn-primary:hover {
    background: #95c5b8;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.auth-page .btn-primary:active {
    transform: translateY(0);
}

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

/* Checkbox Styles */
.auth-page .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1rem 0;
}

.auth-page .custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.auth-page .custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.auth-page .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid black;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid var(--Grayscale-Outline-Secondary, #B8B9BB);
}

.auth-page .custom-checkbox:hover .checkmark {
    border-color: var(--primary-color);
}

.auth-page .custom-checkbox input:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-page .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.auth-page .custom-checkbox input:checked ~ .checkmark::after {
    opacity: 1;
}

.auth-page .checkbox-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-left: 0.5rem;
}

.auth-page .checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-page .checkbox-label a:hover {
    text-decoration: underline;
}

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

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

.auth-page .divider span {
    padding: 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-page .auth-card {
        grid-template-columns: 1fr;
        max-width: 400px;
        background: none;
        box-shadow: none;
        padding: 0px;
    }
    .footer-values-section {
        border-radius: 0px !important;
    }
    .auth-page .auth-visual {
        display: none;
    }
    
    .auth-page .auth-form {
        padding: 2rem 1.5rem;
    }
    
    .auth-page .social-buttons {
        grid-template-columns: 1fr;
    }

    .auth-page .auth-header {
        text-align: center;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 480px) {
    .auth-page .auth-container {
        padding: 1rem;
    }

    .auth-page .auth-form {
        padding: 10px;
    }
}
