/* style.css */
/* Beautiful Background Image Styling */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2073&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Alternative background images you can use:
   https://images.unsplash.com/photo-1560518883-ce09059eeffa (apartments)
   https://images.unsplash.com/photo-1558036117-15e82a2c9a9a (modern house)
   https://images.unsplash.com/photo-1518780664697-55e3ad937233 (property)
   https://images.unsplash.com/photo-1502672260266-1c1ef2d93688 (luxury villa)
*/

/* Login Container with Glass Morphism Effect */
.login-container {
    max-width: 420px;
    width: 90%;
    padding: 40px 35px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3),
                0 8px 32px rgba(31, 38, 135, 0.37);
    animation: fadeIn 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styling */
h2 {
    color: white;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #a8edea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Form Labels */
.form-label {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Input Group Styling */
.input-group {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.input-group-text {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 12px 18px;
    min-width: 50px;
}

.form-control {
    background: transparent;
    border: none;
    color: white;
    padding: 12px 45px 12px 15px;
    font-size: 1rem;
    height: 50px;
}

.form-control:focus {
    background: transparent;
    color: white;
    box-shadow: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Password Toggle */
.password-toggle {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    z-index: 5;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: white;
    background: rgba(102, 126, 234, 0.5);
}

/* Login Button */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 20px 0 15px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

/* Forgot Password Button */
.forgot-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    margin: 10px 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
}

.forgot-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 233, 123, 0.5);
    text-decoration: none;
}

/* Back Button */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

/* Error Message Styling */
.text-danger {
    background: rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545;
    color: #ff6b6b;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
}

/* Success Message (if you add registration) */
.text-success {
    background: rgba(40, 167, 69, 0.2);
    border-left: 4px solid #28a745;
    color: #51cf66;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
}

/* Footer Text */
.login-footer {
    text-align: center;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Brand/Logo Styling */
.brand-logo {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        max-width: 350px;
        padding: 30px 25px;
        margin: 20px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .brand-logo {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        max-width: 300px;
        padding: 25px 20px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .form-control {
        font-size: 0.95rem;
    }
}

/* Loading Animation */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Checkbox for Remember Me (if added) */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Decorative Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}