/* put your own styles to customize and override the theme */

/* Styles personnalisés pour la page de login - Fond bleu uniforme */
.auth {
    background: #2563EB;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.auth::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: sparkle 20s linear infinite;
}

/* Motifs géométriques bleus supplémentaires */
.auth {
    position: relative;
}

.auth .blue-pattern-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="blueDots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(59,130,246,0.3)"/></pattern><pattern id="blueTriangles" width="40" height="40" patternUnits="userSpaceOnUse"><polygon points="20,5 35,30 5,30" fill="rgba(30,64,175,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23blueDots)"/><rect width="100" height="100" fill="url(%23blueTriangles)"/></svg>');
    opacity: 0.3;
    animation: patternMove 20s linear infinite;
}

.auth .blue-pattern-2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="blueHex" width="30" height="30" patternUnits="userSpaceOnUse"><polygon points="15,3 25,10 25,20 15,27 5,20 5,10" fill="none" stroke="rgba(37,99,235,0.3)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23blueHex)"/></svg>');
    opacity: 0.2;
    animation: patternMove 25s linear infinite reverse;
}

.auth .blue-pattern-3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="blueWaves" width="50" height="20" patternUnits="userSpaceOnUse"><path d="M0,10 Q12.5,0 25,10 T50,10 T75,10 T100,10" stroke="rgba(59,130,246,0.25)" stroke-width="2" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23blueWaves)"/></svg>');
    opacity: 0.25;
    animation: waveMove 30s ease-in-out infinite;
}

@keyframes patternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-30px) translateY(-30px); }
}

@keyframes waveMove {
    0%, 100% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(10px) scaleY(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes sparkle {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-30px) translateY(-30px); }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    max-width: 450px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: sparkle 10s linear infinite;
    z-index: -1;
}

.login-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .app-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4), 0 0 20px rgba(59, 130, 246, 0.3);
    position: relative;
    animation: bounce 2s ease-in-out infinite;
}

.login-header .app-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #1E40AF, #2563EB, #3B82F6, #1E40AF);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

.login-header .app-icon i {
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563EB;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.login-header p {
    color: #1E40AF;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.form-floating-custom {
    position: relative;
    margin-bottom: 1.5rem;
    z-index: 10;
}

.form-floating-custom .form-control {
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 15px;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    height: auto;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.form-floating-custom .form-control:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    background: white;
}

.form-floating-custom .form-control::placeholder {
    color: #a0aec0;
    opacity: 0.8;
}

.form-floating-custom label {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    color: #718096;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
    padding: 0;
    z-index: 1;
}

.form-floating-custom .form-control:focus ~ label,
.form-floating-custom .form-control:not(:placeholder-shown) ~ label,
.form-floating-custom .form-control:focus ~ label,
.form-floating-custom .form-control[value]:not([value=""]) ~ label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #2563EB;
    background: white;
    padding: 0 0.5rem;
}

.form-floating-custom .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
    z-index: 1;
    pointer-events: none;
}

.form-floating-custom .form-control:focus ~ .input-icon {
    color: #2563EB;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    z-index: 10;
    position: relative;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 0.75rem;
    cursor: pointer;
}

.remember-me input[type="checkbox"]:checked {
    background-color: #2563EB;
    border-color: #2563EB;
}

.remember-me label {
    color: #4a5568;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
}

.btn-login {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
    z-index: 10;
    pointer-events: auto;
}

.btn-login:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.6), 0 0 20px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-login:active {
    transform: translateY(0);
}

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

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

.alert-custom {
    border: none;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: #fed7d7;
    color: #c53030;
    border-left: 4px solid #e53e3e;
}

.auth-footer {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Éléments décoratifs bonbon */
.candy-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.candy-decoration::before {
    content: '🍭';
    font-size: 1.5rem;
    position: absolute;
    animation: floatCandy 6s ease-in-out infinite;
}

/* Motifs géométriques bleus flottants */
.blue-geometric {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.blue-geometric::before {
    content: '';
    width: 30px;
    height: 30px;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    position: absolute;
    animation: geometricFloat 8s ease-in-out infinite;
}

.blue-geometric.square::before {
    border-radius: 5px;
    background: rgba(37, 99, 235, 0.3);
    transform: rotate(45deg);
}

.blue-geometric.triangle::before {
    width: 0;
    height: 0;
    background: transparent;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 26px solid rgba(59, 130, 246, 0.3);
    border-radius: 0;
}

.blue-geometric.diamond::before {
    width: 20px;
    height: 20px;
    background: rgba(37, 99, 235, 0.4);
    transform: rotate(45deg);
    border-radius: 2px;
}

@keyframes geometricFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-25px) rotate(180deg) scale(1.2); 
        opacity: 1;
    }
}

.candy-decoration:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.candy-decoration:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.candy-decoration:nth-child(3) {
    bottom: 30%;
    left: 5%;
    animation-delay: 4s;
}

.candy-decoration:nth-child(4) {
    bottom: 15%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes floatCandy {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 1;
    }
}

/* Bulles décoratives */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: bubbleFloat 8s ease-in-out infinite;
}

.bubble:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 60%;
    right: 25%;
    animation-delay: 3s;
}

.bubble:nth-child(3) {
    width: 25px;
    height: 25px;
    bottom: 40%;
    left: 15%;
    animation-delay: 1.5s;
}

@keyframes bubbleFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-30px) scale(1.2); 
        opacity: 0.6;
    }
}

/* Motifs bleus supplémentaires pour la carte de login */
.login-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(30, 58, 138, 0.4), 
        rgba(59, 130, 246, 0.3), 
        rgba(37, 99, 235, 0.4), 
        rgba(59, 130, 246, 0.3));
    border-radius: 27px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.01);
    }
}

/* Motifs de fond supplémentaires */
.blue-dots-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="smallDots" width="15" height="15" patternUnits="userSpaceOnUse"><circle cx="7.5" cy="7.5" r="1" fill="rgba(59,130,246,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23smallDots)"/></svg>');
    opacity: 0.4;
    animation: dotsMove 40s linear infinite;
}

@keyframes dotsMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-15px) translateY(-15px); }
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
        padding: 2rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .candy-decoration,
    .blue-geometric {
        display: none;
    }
    
    .blue-pattern-1,
    .blue-pattern-2,
    .blue-pattern-3 {
        opacity: 0.1;
    }
}
