/**
 * Styles du Portail de Connexion - Hyperion-Libs-SP
 *
 * Styles réutilisables pour le composant login-portal
 */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #f7fafc;
}

/* Container principal */
.hyperion-main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login container - Glass effect */
.hyperion-login-container {
    background: rgba(20, 20, 20, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(0px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 1);
    border: 1px solid #ff2a2a6c;
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

/* Logo */
.hyperion-logo {
    text-align: center;
    margin-bottom: 30px;
}

.hyperion-logo img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(229, 62, 62, 0.3));
}

/* Titres */
.hyperion-login-container h1 {
    color: #f7fafc;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.hyperion-subtitle {
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Formulaire */
.hyperion-form-group {
    margin-bottom: 20px;
}

.hyperion-form-group label {
    display: block;
    color: #cbd5e0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hyperion-lock-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
}

.hyperion-form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: #0a0a0a;
    border: 2px solid #2d2d2d;
    border-radius: 8px;
    color: #f7fafc;
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
}

.hyperion-form-group input[type="password"]:focus {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Bouton */
.hyperion-btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: #e53e3e;
    border: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Coins décoratifs */
.hyperion-btn-submit::before,
.hyperion-btn-submit::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-style: solid;
    border-color: #e53e3e;
    transition: border-color 0.3s ease;
}

/* Coin en haut à gauche */
.hyperion-btn-submit::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

/* Coin en bas à droite */
.hyperion-btn-submit::after {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

.hyperion-btn-submit:hover {
    background: rgba(229, 62, 62, 0.1);
    color: #ff5555;
}

.hyperion-btn-submit:hover::before,
.hyperion-btn-submit:hover::after {
    border-color: #ff5555;
}

.hyperion-btn-submit:active {
    background: rgba(229, 62, 62, 0.2);
}

.hyperion-btn-submit:disabled {
    background: transparent;
    color: #666666;
    cursor: not-allowed;
}

.hyperion-btn-submit:disabled::before,
.hyperion-btn-submit:disabled::after {
    border-color: #666666;
}

/* Messages d'erreur */
.hyperion-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* Footer dans le container */
.hyperion-login-footer {
    text-align: center;
    margin-top: 30px;
    color: #64748b;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hyperion-footer-icon {
    font-size: 16px;
}

.hyperion-footer-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .hyperion-login-container {
        padding: 30px 20px;
    }

    .hyperion-login-container h1 {
        font-size: 20px;
    }

    .hyperion-logo img {
        width: 100px;
    }
}

/* Animation de secousse pour les erreurs */
@keyframes hyperion-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.hyperion-error-shake {
    animation: hyperion-shake 0.5s;
}
