/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #d0eaff 0%, #a8d0ff 50%, #7fbaff 100%) !important;
}

.login-wrapper {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 1;
    justify-content: center;
    align-items: center;
}

/* Form Container as Background */
.form-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #d0eaff 30%, #a8d0ff 80%, #7fbaff 95%) !important;
    position: relative;
}

/* Logo Overlay */
.logo-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
}

.standalone-logo {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Form Card */
.form-card {
    width: 90%;
    max-width: 500px;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    position: relative;
    z-index: 2;
    margin-top: 80px; /* Give space for the logo */
}

/* Additional blue accent shape for the card */


.form-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.form-header h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.divider {
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 3px;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.8rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: #7f8c8d;
    font-size: 1.2rem;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
}

.login-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(52, 152, 219, 0.3);
}

.login-btn i {
    font-size: 1.3rem;
}

/* Error Message */
.error {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 12px;
    background-color: #fdeded;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    body::before,
    body::after,
    .form-card::before {
        display: none;
    }
    
    .form-card {
        width: 100%;
        padding: 2rem;
        margin-top: 100px;
    }
    
    .logo-overlay {
        top: 10px;
    }
    
    .standalone-logo {
        max-width: 120px;
    }
}