/* Blue Gradient Glassy Login UI - Responsive and Animated */

/* Body and Background Gradient */
.login-page-glassy {
    background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 50%, #64b5f6 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated background bubbles */
.login-page-glassy::before,
.login-page-glassy::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.login-page-glassy::before {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.login-page-glassy::after {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -200px;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-50px) scale(1.1);
        opacity: 0.7;
    }
}

/* Login Box Container */
.login-box-glassy {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Container */
.login-logo-glassy {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-in;
}

.login-logo-glassy img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Glassy Card */
.login-box-body-glassy {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 40px 35px;
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Login Message */
.login-box-msg-glassy {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #0d47a1; /* Dark blue text */
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(13, 71, 161, 0.2);
}

/* Form Groups */
.form-group-glassy {
    margin-bottom: 25px;
    position: relative;
}

.form-group-glassy label {
    color: #0d47a1; /* Dark blue text */
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(13, 71, 161, 0.1);
}

/* Input Fields */
.form-control-glassy {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(13, 71, 161, 0.3);
    border-radius: 10px;
    color: #0d47a1; /* Dark blue text */
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-control-glassy::placeholder {
    color: rgba(13, 71, 161, 0.5);
}

.form-control-glassy:focus {
    background: rgba(255, 255, 255, 0.7);
    border-color: #0d47a1;
    box-shadow: 0 0 20px rgba(13, 71, 161, 0.3);
    outline: none;
    transform: translateY(-2px);
    color: #0d47a1;
}

/* Input Icons */
.form-control-feedback-glassy {
    position: absolute;
    right: 15px;
    top: 38px;
    color: rgba(13, 71, 161, 0.7);
    pointer-events: none;
}

/* Checkbox Styling */
.checkbox-glassy {
    color: #0d47a1; /* Dark blue text */
    font-size: 14px;
}

.checkbox-glassy label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-glassy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Button Styling */
.btn-glassy {
    background: rgba(13, 71, 161, 0.8);
    border: 2px solid rgba(13, 71, 161, 0.9);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
    width: 100%;
    margin-top: 10px;
}

.btn-glassy:hover {
    background: rgba(13, 71, 161, 1);
    border-color: rgba(13, 71, 161, 1);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
    transform: translateY(-3px);
    color: #ffffff;
}

.btn-glassy:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(13, 71, 161, 0.4);
}

/* Error Messages */
.text-danger-glassy {
    color: #b71c1c; /* Dark red for errors */
    font-size: 13px;
    margin-top: 5px;
    display: block;
    text-shadow: 0 1px 2px rgba(183, 28, 28, 0.2);
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .login-box-glassy {
        max-width: 100%;
        padding: 0 15px;
    }

    .login-box-body-glassy {
        padding: 30px 25px;
        border-radius: 15px;
    }

    .login-logo-glassy img {
        width: 100px;
        height: 100px;
    }

    .login-box-msg-glassy {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .form-control-glassy {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-glassy {
        padding: 10px 25px;
        font-size: 15px;
    }

    .login-page-glassy::before {
        width: 200px;
        height: 200px;
    }

    .login-page-glassy::after {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .login-box-body-glassy {
        padding: 25px 20px;
    }

    .login-box-msg-glassy {
        font-size: 15px;
    }

    .form-group-glassy {
        margin-bottom: 20px;
    }

    .login-logo-glassy img {
        width: 90px;
        height: 90px;
        padding: 12px;
    }
}

/* Additional Enhancements */
.login-box-body-glassy:hover {
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Loading animation for form submission */
.btn-glassy.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-glassy.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Focus visible for accessibility */
.form-control-glassy:focus-visible,
.btn-glassy:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}
