﻿/* --- assets/css/login.css --- */

/* Base body styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* --- Gradient & Welcome Section --- */
.gradient-bg {
    background: linear-gradient(-45deg, #4e54c8, #8f94fb, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient animation keyframes */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-bg img {
/*    max-width: 150px;*/
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.gradient-bg h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* --- Login Form Section --- */
.login-form-container {
    animation: fadeIn 0.8s ease-in-out;
    max-width: 400px;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom styles for form inputs */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: #8f94fb;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

/* Custom styles for the main login button */
.btn-primary {
    background-color: #4e54c8;
    border-color: #4e54c8;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.2);
}

    .btn-primary:hover {
        background-color: #4147a9;
        border-color: #4147a9;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(78, 84, 200, 0.3);
    }

/* --- Loading Overlay & Spinner --- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    display: grid;
    place-items: center;
    z-index: 9999;
    pointer-events: none;
}

.loading-box {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 320px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    pointer-events: auto;
}

.spinner {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 5px solid;
    border-image-slice: 1;
    border-image-source: conic-gradient( from 90deg, #a855f7, #6366f1, #ec4899, #a855f7 );
    animation: morph-and-spin 2s ease-in-out infinite;
}

@keyframes morph-and-spin {
    0% {
        transform: rotate(0deg);
        border-radius: 50%;
    }

    50% {
        transform: rotate(180deg);
        border-radius: 8px;
    }

    100% {
        transform: rotate(360deg);
        border-radius: 50%;
    }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: transparent;
    background-image: linear-gradient( 90deg, #a855f7, #f1f5f9, #a855f7 );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: wave-animation 2s linear infinite;
}

@keyframes wave-animation {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Z-index for third-party libraries --- */
.flatpickr-calendar {
    z-index: 1055 !important;
}
