/* =============================================================
 * admin_pro_login.css
 * Styles de la page de connexion — Dashboard Admin Hospitalier
 * ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
    background: #0a192f;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* Arrière-plan avec logo fantôme */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/logo.png') no-repeat center center;
    background-size: 50vmin;
    opacity: 0.15;
    filter: grayscale(100%) brightness(1.2) hue-rotate(180deg);
    z-index: -2;
    animation: adminLogoPulse 6s ease-in-out infinite;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 180, 180, 0.06);
    z-index: -1;
}

@keyframes adminLogoPulse {
    0%, 100% { opacity: 0.12; }
    50%       { opacity: 0.22; }
}

/* Conteneur centré */
.page-wrapper {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Carte HUD */
.hud-card {
    background: rgba(0, 255, 255, 0.04);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 200, 200, 0.15);
    position: relative;
    animation: adminFadeIn 0.7s ease-out forwards;
}

.hud-card::before {
    content: "";
    position: absolute;
    width: 80%;
    height: 80%;
    border: 1px dashed rgba(0, 255, 255, 0.18);
    border-radius: 20px;
    top: 10%;
    left: 10%;
    animation: rotateBorder 14s linear infinite;
    pointer-events: none;
}

@keyframes adminFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes rotateBorder {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Titres */
h2, h4 {
    color: #00e5ff;
    margin-bottom: 1rem;
}

/* Icône hôpital */
.icon {
    font-size: 2.8rem;
    color: #facc15;
    margin-bottom: 0.75rem;
}

/* Champs de saisie */
.input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.input-wrapper .icon-left {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: rgba(0, 255, 255, 0.7);
    font-size: 1.3rem;
    pointer-events: none;
}

.input-wrapper .icon-right {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: rgba(0, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.input-wrapper .icon-right:hover {
    opacity: 0.7;
}

.input-wrapper .form-control {
    padding-left: 2.6rem;
}

.form-control {
    background-color: transparent;
    border: 1px solid rgba(0, 255, 255, 0.5);
    color: #00e5ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.form-control::placeholder {
    color: rgba(0, 220, 220, 0.55);
    font-style: italic;
}

.form-control:focus {
    background-color: rgba(0, 255, 255, 0.05);
    border-color: #00ffff;
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.15);
    color: #00ffff;
    outline: none;
}

/* Bouton connexion */
.btn-hud {
    background-color: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 0.55rem 2rem;
    font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.05em;
}

.btn-hud:hover,
.btn-hud:focus {
    background-color: #00ffff;
    color: #0a192f;
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.5);
}

.btn-hud:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alerte session expirée */
.alert-warning {
    background: rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.4);
    color: #fde68a;
    font-size: 0.78rem;
}

/* Pied de page */
.d-flex.justify-content-between.mt-4 {
    font-size: 0.72rem;
}
