/* ===========================
   Alerts & Other Components
   =========================== */

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid;
}

.alert-error {
    background: #FEF2F2;
    color: var(--coral);
    border-color: #FECACA;
}

.alert-success {
    background: #F0FDFA;
    color: var(--accent-teal);
    border-color: #A7F3D0;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}/* Animated Dots Pattern */
.dots-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(40px, 40px); }
}/* ===========================
   Authentication Pages Styles
   For login.php & register.php
   =========================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Design System */
:root {
    /* Primary Colors */
    --primary: #475569;
    --primary-dark: #334155;
    --accent-teal: #14B8A6;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --coral: #EF4444;
    
    /* Backgrounds */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    
    /* Borders */
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    
    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Body & Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
}

/* ===========================
   Layout Structure
   =========================== */

/* Split Screen Container */
.login-container,
.contact-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left Side - Branding Panel */
.login-branding,
.contact-info-panel {
    flex: 1;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
}

/* Abstract Pattern Background */
.pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--accent-teal) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--coral) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, var(--slate-400) 0%, transparent 50%);
}

/* Branding Content */
.info-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.brand-logo {
    margin-bottom: 3rem;
}

.brand-logo svg {
    height: 120px;
    width: auto;
}

.info-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.info-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.5;
}

/* Contact Methods - matching login.php feature list */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    margin: 0 auto;
    max-width: 350px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details {
    text-align: left;
}

.contact-label {
    font-size: 0.9375rem;
    opacity: 0.9;
}

.contact-value {
    font-size: 0.9375rem;
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

/* Right Side - Form Section */
.login-form-section,
.contact-form-panel {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem;
    background: var(--white);
    margin-left: 50%;
    min-height: 100vh;
    overflow-y: auto;
}

.login-form-container,
.form-container {
    width: 100%;
    max-width: 420px;
    padding: 3rem 0;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===========================
   Form Components - Uniform spacing
   =========================== */

/* Form Groups & Labels */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Single form group after rows should also have consistent spacing */
.form-row + .form-group {
    margin-top: 0;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Input Fields - Matching login.php exactly */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

/* Textarea specific */
textarea.form-input {
    resize: vertical;
    min-height: 180px;
    line-height: 1.6;
}

/* Select styling */
select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.required {
    color: var(--coral);
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.privacy-notice svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* Primary Button (Submit) */
.submit-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #F0FDFA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent-teal);
}

.success-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Divider */
.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
}

.divider span {
    background: var(--white);
    padding: 0 1rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===========================
   Mobile Navigation
   =========================== */

.mobile-nav-link {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

.back-link:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .contact-info-panel {
        display: none;
        position: static;
        width: auto;
    }
    
    .contact-form-panel {
        background: linear-gradient(to bottom, var(--gray-50), var(--white));
        margin-left: 0;
    }
    
    .mobile-nav-link {
        display: block;
    }
}

@media (max-width: 480px) {
    .contact-form-panel {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
}

/* ===========================
   Two-column form layout
   =========================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Textarea specific */
textarea.form-input {
    resize: vertical;
    min-height: 180px;
    line-height: 1.6;
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.privacy-notice svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* Select styling */
select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.required {
    color: var(--coral);
}

/* Link styling */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}