﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   AUTH LOGO SECTION - MODERN GRADIENT
   ============================================ */

#auth-logo {
    padding: 10% 11%;
    background: linear-gradient(135deg, #053837 0%, #1f6b21 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Background Pattern */
#auth-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: movePattern 30s linear infinite;
    opacity: 0.6;
}

@keyframes movePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* Gradient Orb */
#auth-logo::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(178, 197, 157, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: floatOrb 10s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.15); }
}

/* ============================================
   BUTTON - MODERN STYLE
   ============================================ */

.btn-info,
.btn-info.disabled {
    background: linear-gradient(135deg, rgb(42, 143, 45) 0%, #053837 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(42, 143, 45, 0.35);
    position: relative;
    overflow: hidden;
}

/* Button Shine Effect */
.btn-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-info:hover::before {
    left: 100%;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2fa832 0%, rgb(42, 143, 45) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 143, 45, 0.45);
    border: none;
}

.btn-info:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(42, 143, 45, 0.35);
}

.btn-info.disabled,
.btn-info:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

/* ============================================
   FORM SECTION - CLEAN BACKGROUND
   ============================================ */

#form-section {
    background: #ffffff;
    height: 100vh;
    padding-left: 0;
    padding-right: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.06);
}

/* ============================================
   AUTH FORM - IMPROVED SPACING
   ============================================ */

#auth-form {
    max-width: 80%;
    margin-top: 10%;
    margin-left: 10%;
    margin-right: 10%;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   LOGO IMAGE - MODERN GLASSMORPHISM
   ============================================ */

.imgCustom200pxCircle {
    border: 4px solid rgba(255, 255, 255, 0.3);
    padding: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 40px rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.imgCustom200pxCircle:hover {
    transform: scale(1.08) translateY(-8px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.35),
        0 0 0 2px rgba(255, 255, 255, 0.2) inset,
        0 0 60px rgba(255, 255, 255, 0.25);
}

/* Glowing Ring Effect for Logo */
.imgCustom200pxCircle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.8;
    }
}

/* ============================================
   FORM INPUTS - MODERN DESIGN
   ============================================ */

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9fafb;
    color: #1a1a1a;
}

.form-control:focus {
    outline: none;
    border-color: rgb(42, 143, 45);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(42, 143, 45, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* ============================================
   FORM LABELS - ENHANCED
   ============================================ */

.form-label,
label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.3px;
}

/* ============================================
   LINKS - MODERN UNDERLINE EFFECT
   ============================================ */

a {
    color: rgb(42, 143, 45);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(42, 143, 45);
    transition: width 0.3s ease;
}

a:hover {
    color: #1f6b21;
}

a:hover::after {
    width: 100%;
}

/* ============================================
   CHECKBOX - MODERN STYLE
   ============================================ */

input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-right: 10px;
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    background: rgb(42, 143, 45);
    border-color: rgb(42, 143, 45);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

input[type="checkbox"]:hover {
    border-color: rgb(42, 143, 45);
}

/* ============================================
   ALERT MESSAGES - MODERN CARDS
   ============================================ */

.alert {
    border-radius: 12px;
    padding: 14px 18px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

/* ============================================
   CARD COMPONENTS - ENHANCED
   ============================================ */

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

/* ============================================
   FORM GROUPS - BETTER SPACING
   ============================================ */

.form-group {
    margin-bottom: 24px;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */

.text-muted {
    color: #6b7280 !important;
}

.text-primary {
    color: rgb(42, 143, 45) !important;
}

.text-danger {
    color: #dc2626 !important;
}

/* ============================================
   SMOOTH SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgb(42, 143, 45), #2fa832);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2fa832, rgb(42, 143, 45));
}

/* ============================================
   SELECTION STYLING
   ============================================ */

::selection {
    background: rgb(42, 143, 45);
    color: #ffffff;
}

::-moz-selection {
    background: rgb(42, 143, 45);
    color: #ffffff;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner-border {
    border: 3px solid rgba(42, 143, 45, 0.2);
    border-top-color: rgb(42, 143, 45);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
    #auth-form {
        max-width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }
}

@media (max-width: 576px) {
    #auth-form {
        max-width: 95%;
        margin-top: 15%;
    }

    .imgCustom200pxCircle {
        width: 160px;
        height: 160px;
    }

    .btn-info {
        padding: 12px 24px;
        font-size: 14px;
    }
}
