/**
 * Enhanced Landing Page - Professional & Modern
 */

/* ==================== RESET & VARIABLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #5e72e4;
    --primary-dark: #4c63d2;
    --primary-light: #7889e8;
    --success: #2dce89;
    --danger: #f5365c;
    --dark: #32325d;
    --gray: #8898aa;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== ENHANCED HEADER ==================== */
.site-header {
    background: var(--white);
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    max-height: 40px;
    object-fit: contain;
}

.logo i {
    font-size: 2rem;
}

/* ==================== NAVIGATION MENU ==================== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link i {
    font-size: 1.1rem;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(94, 114, 228, 0.08);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(94, 114, 228, 0.1);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

/* ==================== LOGIN BUTTON ==================== */
.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-login:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 114, 228, 0.3);
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e3e8ef;
    margin-top: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-link i {
    font-size: 1.1rem;
    width: 20px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    background: rgba(94, 114, 228, 0.08);
}

.mobile-nav.active {
    display: flex;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    padding: 60px 0;
    min-height: calc(100vh - 160px);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* ==================== LEFT SIDE - INFO ==================== */
.info-section {
    padding-top: 40px;
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.main-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.feature-item i {
    color: var(--success);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item span {
    color: var(--dark);
    font-weight: 500;
}

/* ==================== RIGHT SIDE - FORM ==================== */
.form-section {
    position: sticky;
    top: 120px;
}

.form-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary);
    margin-right: 6px;
    width: 18px;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e3e8ef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* Quill Editor Styling */
#editor {
    border: 2px solid #e3e8ef;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}

.ql-toolbar {
    border: none !important;
    border-bottom: 2px solid #e3e8ef !important;
    border-radius: 8px 8px 0 0;
    background: #f8f9fa;
}

.ql-container {
    border: none !important;
    font-size: 0.95rem;
    font-family: inherit;
}

.ql-editor {
    min-height: 200px;
    font-family: inherit;
}

.ql-editor.ql-blank::before {
    color: #adb5bd;
    font-style: normal;
}

.ql-snow .ql-stroke {
    stroke: var(--dark);
}

.ql-snow .ql-fill {
    fill: var(--dark);
}

.ql-snow .ql-picker-label {
    color: var(--dark);
}

.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {
    border-color: var(--primary);
}

.ql-snow.ql-toolbar button:hover,
.ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar button.ql-active,
.ql-snow .ql-toolbar button.ql-active {
    color: var(--primary);
}

.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--primary);
}

.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow .ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-fill {
    fill: var(--primary);
}

select.form-input {
    cursor: pointer;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.divider {
    height: 1px;
    background: #e3e8ef;
    margin: 2rem 0;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-danger {
    background: #fef5f6;
    border: 1px solid #fdd;
    color: #c23934;
}

.alert i {
    font-size: 1.2rem;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 114, 228, 0.4);
}

.login-text {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.login-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-text a:hover {
    text-decoration: underline;
}

/* reCAPTCHA Styling */
.g-recaptcha {
    margin: 1rem 0;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--white);
    border-top: 1px solid #e3e8ef;
    padding: 2rem 0;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-section {
        position: static;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .main-nav {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        font-size: 1.25rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .main-subtitle {
        font-size: 1.1rem;
    }
    
    .form-card {
        padding: 2rem 1.5rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .btn-login {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-content {
        padding: 1rem 0;
    }
    
    /* Make Quill toolbar scrollable on mobile */
    .ql-toolbar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .ql-toolbar::-webkit-scrollbar {
        height: 4px;
    }
    
    .ql-toolbar::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 4px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .logo span {
        display: none;
    }
    
    .logo i {
        font-size: 1.75rem;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    #editor {
        height: 180px;
    }
    
    .ql-editor {
        min-height: 180px;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
    
    .btn-login span {
        display: none;
    }
}

/* ==================== SMOOTH SCROLLING ==================== */
html {
    scroll-behavior: smooth;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-section,
.form-section {
    animation: fadeInUp 0.6s ease-out;
}

.form-section {
    animation-delay: 0.2s;
}