/**
 * PATH: /admin/assets/css/login.css
 * The Palm City Hill - Modern Login Page Design
 * Version: 3.0.0
 * Features: Gradient background, glass morphism, smooth animations
 */

/* ========================================
   GLOBAL & RESETS
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-palm: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.4);
}

body.login-page {
    font-family: 'Prompt', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-palm);
    position: relative;
    overflow: hidden;
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */
body.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
    opacity: 0.3;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating circles background */
.login-container::before,
.login-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.login-container::before {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    top: -150px;
    left: -150px;
    animation: float 6s ease-in-out infinite;
}

.login-container::after {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    bottom: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* ========================================
   LOGIN CONTAINER
   ======================================== */
.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   LOGIN CARD - Glass Morphism
   ======================================== */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

/* Shine effect */
.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ========================================
   HEADER
   ======================================== */
.login-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-palm);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-logo i {
    font-size: 40px;
    color: white;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    background: var(--gradient-palm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 15px;
    color: #6b7280;
    font-weight: 400;
}

/* ========================================
   FORM
   ======================================== */
.login-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: var(--primary);
    font-size: 16px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: 'Prompt', sans-serif;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    color: #1f2937;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* ========================================
   LOGIN BUTTON
   ======================================== */
.login-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    background: var(--gradient-palm);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
    position: relative;
    overflow: hidden;
}

.login-btn::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.5s;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(5, 150, 105, 0.4);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-btn i {
    margin-right: 8px;
}

/* Loading state */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ========================================
   MESSAGES
   ======================================== */
.error-message,
.success-message {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.error-message i {
    color: #dc2626;
    font-size: 18px;
}

.success-message {
    background: #f0fdf4;
    color: #065f46;
    border: 1px solid #bbf7d0;
}

.success-message i {
    color: #059669;
    font-size: 18px;
}

/* ========================================
   FOOTER
   ======================================== */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    position: relative;
    z-index: 1;
}

.login-footer p {
    font-size: 13px;
    color: #6b7280;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
    .login-container {
        padding: 15px;
    }
    
    .login-card {
        padding: 40px 25px;
        border-radius: 20px;
    }
    
    .login-logo {
        width: 70px;
        height: 70px;
    }
    
    .login-logo i {
        font-size: 35px;
    }
    
    .login-title {
        font-size: 26px;
    }
    
    .login-subtitle {
        font-size: 14px;
    }
    
    .form-input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 14px;
        font-size: 15px;
    }
}

/* ========================================
   ADDITIONAL ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Smooth appearance for all elements */
.login-header,
.login-form,
.login-footer {
    animation: fadeIn 1s ease-out;
}

.login-header {
    animation-delay: 0.2s;
    animation-fill-mode: backwards;
}

.login-form {
    animation-delay: 0.4s;
    animation-fill-mode: backwards;
}

.login-footer {
    animation-delay: 0.6s;
    animation-fill-mode: backwards;
}