/* Modern Design System - Jamin Lim Photography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Animated Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f8f9fa 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="30" r="1.5" fill="white" opacity="0.15"/><circle cx="40" cy="70" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="80" r="2.5" fill="white" opacity="0.08"/><circle cx="10" cy="90" r="1.8" fill="white" opacity="0.12"/></svg>');
    animation: float 20s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

/* Header Styles */
header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo img {
    height: 50px;
    width: auto;
  }
  
  nav {
    display: flex;
    gap: 2rem;
    align-items: center;
  }
  
  nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
  }
  
  nav a:hover,
  nav a.active {
    color: #667eea;
  }
  
  nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
  }
  
.book-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Main Content */
.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.15);
    animation: fadeInUp 1s ease-out 0.3s both;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.4), transparent);
}

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

.login-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.login-subtitle {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 16px;
    color: #333;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #999;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-input:focus + .input-icon {
    color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

.forgot-password {
    text-align: right;
    margin-bottom: 2rem;
}

.forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-password a:hover {
    color: #5a6fd8;
}

.forgot-password a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #667eea;
    transition: width 0.3s ease;
}

.forgot-password a:hover::after {
    width: 100%;
}

.login-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #764ba2, #667eea);
    border-radius: 50%;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.login-btn span {
    position: relative;
    z-index: 1;
}

.register-section {
    text-align: center;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding-top: 2rem;
}

.register-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.register-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.register-link {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid #667eea;
    border-radius: 12px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.register-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    z-index: 1000;
}

.footer-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        position: relative;
        background: rgba(255, 255, 255, 0.98);
    }
    
    nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-container {
        padding: 1rem;
        margin-top: 8rem;
    }
    
    .login-container {
        padding: 2rem 1.5rem;
        margin-bottom: 6rem;
    }
    
    .login-title {
        font-size: 2.2rem;
    }
    
    .register-links {
        flex-direction: column;
    }
    
    footer {
        position: relative;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .login-title {
        font-size: 1.8rem;
    }
    
    .form-input {
        padding: 0.9rem 0.9rem 0.9rem 2.5rem;
    }
    
    .input-icon {
        left: 0.8rem;
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced hover effects */
.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(102, 126, 234, 0.2);
}

/* Subtle pulse animation for the container */
@keyframes pulse {
    0%, 100% { box-shadow: 0 25px 50px rgba(102, 126, 234, 0.15); }
    50% { box-shadow: 0 30px 60px rgba(102, 126, 234, 0.2); }
}

.login-container {
    animation: fadeInUp 1s ease-out 0.3s both, pulse 4s ease-in-out infinite;
}

/* Ripple Animation */
@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}