/* === AUTHELIA CUSTOM THEME - OCEAN === */

/* Cacher la barre blanche du header */
.MuiAppBar-root,
.MuiAppBar-colorDefault,
.MuiAppBar-positionFixed,
header,
nav {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.MuiToolbar-root {
    background: transparent !important;
}

/* Masquer le username comme un password */
input[name="username"],
input[autocomplete="username"] {
    -webkit-text-security: disc !important;
    text-security: disc !important;
    font-family: text-security-disc, serif !important;
}

/* Background océan animé */
body {
    background: linear-gradient(180deg, #006994 0%, #003366 50%, #001a33 100%) !important;
    min-height: 100vh;
    overflow: hidden;
}

/* Conteneur principal */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 150, 200, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 100, 150, 0.2) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Bulles animées */
body::after {
    content: "🫧";
    position: fixed;
    font-size: 30px;
    animation: float-bubbles 8s ease-in-out infinite;
    bottom: -50px;
    left: 20%;
    opacity: 0.6;
    z-index: -1;
}

@keyframes float-bubbles {
    0% { transform: translateY(0) translateX(0); opacity: 0.6; }
    50% { transform: translateY(-50vh) translateX(20px); opacity: 0.8; }
    100% { transform: translateY(-100vh) translateX(-10px); opacity: 0; }
}

/* Poissons qui nagent */
.MuiContainer-root::before {
    content: "🐟";
    position: fixed;
    font-size: 40px;
    top: 30%;
    animation: swim-fish 12s linear infinite;
    z-index: -1;
}

.MuiContainer-root::after {
    content: "🐠";
    position: fixed;
    font-size: 35px;
    top: 50%;
    animation: swim-fish 15s linear infinite reverse;
    animation-delay: -5s;
    z-index: -1;
}

@keyframes swim-fish {
    0% { left: -60px; transform: scaleX(1); }
    49% { transform: scaleX(1); }
    50% { left: calc(100% + 60px); transform: scaleX(-1); }
    99% { transform: scaleX(-1); }
    100% { left: -60px; transform: scaleX(1); }
}

/* Poulpe en bas */
#root::after {
    content: "🐙";
    position: fixed;
    font-size: 60px;
    bottom: 20px;
    right: 30px;
    animation: octopus-wave 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes octopus-wave {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-10px); }
}

/* Méduse */
#root::before {
    content: "🪼";
    position: fixed;
    font-size: 45px;
    top: 15%;
    right: 15%;
    animation: jellyfish-float 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes jellyfish-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    75% { transform: translateY(10px) rotate(-5deg); }
}

/* Card de login plus jolie */
.MuiPaper-root {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(0, 50, 100, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Bouton login style océan */
.MuiButton-containedPrimary {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%) !important;
    border-radius: 12px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4) !important;
    transition: all 0.3s ease !important;
}

.MuiButton-containedPrimary:hover {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.5) !important;
}

/* Input fields */
.MuiOutlinedInput-root {
    border-radius: 12px !important;
}

.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
    border-color: #0077b6 !important;
}

/* Titre */
.MuiTypography-h5 {
    color: #003366 !important;
    font-weight: 700 !important;
}

/* Petit poisson bonus qui passe */
@keyframes bonus-fish {
    0% { left: -100px; top: 70%; }
    100% { left: calc(100% + 100px); top: 60%; }
}

.MuiCardContent-root::before {
    content: "🦈";
    position: fixed;
    font-size: 50px;
    animation: bonus-fish 20s linear infinite;
    animation-delay: -8s;
    z-index: -1;
    opacity: 0.7;
}

/* Algues en bas */
.MuiCardContent-root::after {
    content: "🌿🌱🌿";
    position: fixed;
    font-size: 35px;
    bottom: 0;
    left: 10%;
    z-index: -1;
    animation: seaweed 4s ease-in-out infinite;
}

@keyframes seaweed {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}
