@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

/* --- Global --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

/* Header */
header {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: rgba(0,0,0,0.7);
    margin-bottom: 15px;
}

header h1 {
    color: #00f0ff;
    font-size: 2rem;
}

/* Page title */
.page-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #00f0ff;
}

/* Première connexion */
.first-login-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.first-login {
    background: orange;
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.first-login:hover {
    background: darkorange;
}

/* Bloc login */
.login-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
}

/* Halo derrière le bloc */
.halo {
    position: absolute;
    top: -25px;
    left: -25px;
    width: calc(100% + 50px);
    height: calc(100% + 50px);
    background: conic-gradient(#00f0ff 0deg, transparent 120deg, #00f0ff 240deg);
    border-radius: 50%;
    filter: blur(25px);
    animation: rotateHalo 6s linear infinite;
    z-index: 0;
}

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

/* Login block */
.login-block {
    position: relative;
    background: rgba(0,0,0,0.85);
    padding: 25px;
    border-radius: 15px;
    z-index: 1;
    box-shadow: 0 0 20px #00f0ff;
}

.login-block h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #00f0ff;
}

.login-block h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #00f0ff;
    font-size: 1.1rem;
}

/* Labels et inputs */
.login-block label {
    display: block;
    margin-bottom: 5px;
    margin-top: 10px;
}

.login-block input[type="text"],
.login-block input[type="password"],
.login-block input[type="email"] {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-bottom: 10px;
}

/* Mot de passe + bouton Modifier */
.field-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-with-button input {
    flex: 1;
    margin-right: 10px;
}

.modify-password {
    padding: 10px;
    background: #007bff;
    color: #fff;
    border-radius: 5px;
}

.modify-password:hover {
    background: #0056b3;
}

/* Double authentification */
.field-with-radio {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.field-with-radio label {
    flex: 1;
}

.field-with-radio input[type="text"],
.field-with-radio input[type="email"] {
    flex: 2;
    margin-right: 10px;
}

.field-with-radio input[type="radio"] {
    flex-shrink: 0;
    accent-color: #00f0ff;
}

/* Separator */
.separator {
    border: 1px solid #00f0ff;
    margin: 15px 0;
}

/* Bouton se connecter */
.login-block button[type="submit"] {
    width: 100%;
    padding: 10px;
    font-weight: bold;
    margin-top: 15px;
    border-radius: 5px;
    background: #00f0ff;
    color: #000;
}

.login-block button[type="submit"]:hover {
    background: #00c0ff;
}

/* Footer */
footer {
    text-align: center;
    margin-top: auto;
    padding: 10px 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: #00f0ff;
}

/* Responsive mobile-first */
@media (min-width: 768px) {
    .page-title { font-size: 2.5rem; }
    .login-block { padding: 30px; }
    .field-with-button input { padding: 12px; }
    .field-with-button .modify-password { padding: 12px 15px; }
}

/* Mise en colonne pour les boutons Générer / Copier */
.button-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.button-column button {
    width: 60%;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* --- Boutons mot de passe (3 sur une ligne) --- */
.password-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.password-actions button {
    flex: 1;
    padding: 8px 0;
    border-radius: 6px;
    background: #00f0ff;
    color: #000;
    font-weight: bold;
    border: none;
    transition: background 0.2s ease;
}

.password-actions button:hover {
    background: #00c0ff;
}
