/**
 * Login Page CSS
 * Extracted from login.php
 */

* {
    font-family: 'Kanit', sans-serif;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: #0f172a;
}

/* Real Estate Background Image */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center center no-repeat;
    background-size: cover;
}

/* Dark Overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 50%, rgba(15, 23, 42, 0.95) 100%);
}

.login-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.input-field {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    outline: none;
    background: rgba(255, 255, 255, 0.12);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-login {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #ec4899 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

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

.btn-line {
    background: #06C755;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-line:hover {
    background: #05B34C;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 199, 85, 0.3);
}

.btn-line:active {
    transform: translateY(0);
}

.logo-container {
    position: relative;
}

.logo-glow {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
    transition: all 0.3s ease;
}

.logo-glow:hover {
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.7));
    transform: scale(1.05);
}

.tagline {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle animated gradient border */
.login-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3), rgba(139, 92, 246, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-card:hover::before {
    opacity: 1;
}

/* Prevent iOS zoom on input focus (Design System: min 16px) */
.input-field {
    font-size: 16px !important;
}

/* Touch-friendly buttons (Design System: min 44–48px) */
.btn-login,
.btn-line {
    min-height: 48px;
}

/* Mobile responsive (align with DESIGN-SYSTEM.md breakpoints) */
@media (max-width: 640px) {
    .login-card {
        border-radius: 1.25rem;
    }
    .logo-container img {
        width: 5rem;
        height: 5rem;
    }
}

/* PWA standalone mode */
@media (display-mode: standalone) {
    body { padding-top: env(safe-area-inset-top); }
}
