@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #1d204e;
    --accent: #ef562d;
    --accent-gradient: linear-gradient(135deg, #ef562d 0%, #ff7e4d 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-main: #1d204e;
    --shadow-soft: 0 8px 32px rgba(31, 38, 135, 0.15);
    --shadow-hover: 0 20px 60px rgba(239, 86, 45, 0.25);
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #ea9f66 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/esma.jpg') center/cover;
    opacity: 0.15;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(239, 86, 45, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

.custom-navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.2rem;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 440px;
    width: 90%;
    margin: auto;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.icon img {
    height: 70px;
    margin-bottom: 25px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    animation: pulse 2s ease-in-out infinite;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-control {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.form-control:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 6px rgba(239, 86, 45, 0.15);
    transform: translateY(-3px);
    outline: none;
}

.btn-consulter {
    background: var(--accent-gradient);
    color: #ffffff;
    font-weight: 700;
    padding: 18px;
    border-radius: 16px;
    border: none;
    font-size: 1.05rem;
    margin-top: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(239, 86, 45, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-consulter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-consulter:hover::before {
    left: 100%;
}

.btn-consulter:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(239, 86, 45, 0.4);
    color: #ffffff;
}

.footer-text {
    font-size: 12px;
    color: rgba(26, 31, 75, 0.6);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }

    h4 {
        font-size: 1.25rem;
    }
}