/* Modern Auth Pages Stylesheet */
/* World-class, modern UI/UX design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #146C39;
    --primary-dark: #0f5230;
    --primary-light: #1a8a4a;
    --accent-color: #F8B600;
    --accent-hover: #e6a500;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --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);
    --gradient-primary: linear-gradient(135deg, #146C39 0%, #1a8a4a 100%);
    --gradient-accent: linear-gradient(135deg, #F8B600 0%, #ffc933 100%);
    --gradient-bg: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #f0fdf4 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Preloader Modern Style */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(20, 108, 57, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modern Auth Container */
.modern-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
}

.modern-auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(20, 108, 57, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.modern-auth-container::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(248, 182, 0, 0.05) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 30px) rotate(180deg); }
}

/* Auth Card */
.auth-card {
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
}

/* Landing Page Card */
.landing-card {
    max-width: 600px;
    text-align: center;
}

/* Logo */
.auth-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Typography */
.auth-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.auth-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.auth-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-description {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .auth-title {
        font-size: 2rem;
    }
    .auth-heading {
        font-size: 1.75rem;
    }
}

/* Modern Buttons */
.modern-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modern-btn:hover::before {
    width: 300px;
    height: 300px;
}

.modern-btn-primary {
    background: var(--gradient-primary);
    color: white;
    width: 100%;
    margin-bottom: 1rem;
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.modern-btn-accent {
    background: var(--gradient-accent);
    color: white;
    width: 100%;
    margin-bottom: 1rem;
}

.modern-btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.modern-btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 100%;
}

.modern-btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Button Group */
.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* Modern Forms */
.modern-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modern-input,
.modern-select,
.modern-textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.modern-input:focus,
.modern-select:focus,
.modern-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(20, 108, 57, 0.1);
    transform: translateY(-1px);
}

.modern-input::placeholder {
    color: var(--text-light);
}

.modern-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23146C39' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.modern-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Links */
.form-link {
    display: block;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.form-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Landing Page Specific */
.landing-hero {
    margin-bottom: 3rem;
}

.landing-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.landing-hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 2.25rem;
    }
    .landing-hero p {
        font-size: 1.125rem;
    }
}

/* Decorative Elements */
.auth-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    filter: blur(60px);
    z-index: 0;
}

.decoration-1 {
    top: 10%;
    left: 10%;
    animation: float 15s ease-in-out infinite;
}

.decoration-2 {
    bottom: 10%;
    right: 10%;
    animation: float 20s ease-in-out infinite reverse;
}

/* Success/Error Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    border: none;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Responsive Improvements */
@media (max-width: 480px) {
    .modern-auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.25rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .auth-heading {
        font-size: 1.5rem;
    }
}

/* Accessibility */
.modern-btn:focus,
.modern-input:focus,
.modern-select:focus,
.modern-textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .preloader {
        display: none;
    }
}

