/* ---------------------------------------------------
   BASE
--------------------------------------------------- */
body {
    font-family: "Inter", sans-serif;
    background: radial-gradient(circle at top, #0d0f1a, #05060b);
    color: #fff;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 450px;
    margin: auto;
}

/* ---------------------------------------------------
   HEADER
--------------------------------------------------- */
.global-header {
    padding: 15px 0;
    backdrop-filter: blur(12px);
    background: rgba(10, 12, 20, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #7A3FFF;
    text-shadow: 0 0 0px rgba(122, 184, 255, 0.6);
}

.main-nav a {
    margin-left: 20px;
    color: #dfe7ff;
    text-decoration: none;
    transition: 0.2s;
}

.main-nav a:hover {
    color: #7A3FFF;
}

.btn-login {
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(122, 184, 255, 0.15);
    border: 1px solid rgba(178, 139, 250, 0.397);
}

/* ---------------------------------------------------
   LOGIN BOX
--------------------------------------------------- */
#login {
    padding: 120px 0;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 35px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    text-align: center;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
}

.login-box h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.subtitle {
    opacity: 0.8;
    margin-bottom: 30px;
}

/* ---------------------------------------------------
   FORM
--------------------------------------------------- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    transition: 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #7ab8ff;
    box-shadow: 0 0 10px rgba(122, 184, 255, 0.4);
}

/* ---------------------------------------------------
   BUTTONS
--------------------------------------------------- */
.btn-primary {
    background: linear-gradient(135deg, #7b4bff, #b86bff);
    color: #000;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.25s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(122, 184, 255, 0.8);
}

.btn-primary.full {
    width: 100%;
}

/* ---------------------------------------------------
   REGISTER LINK
--------------------------------------------------- */
.register-link {
    margin-top: 20px;
    opacity: 0.8;
}

.register-link a {
    color: #7A3FFF;
    text-decoration: none;
}

.register-link a:hover {
    text-shadow: 0 0 8px rgba(157, 122, 255, 0.6);
}

/* Container centré */
.forgot-container {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

/* Carte premium */
.forgot-card {
    width: 100%;
    max-width: 480px;
    padding: 30px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(98, 39, 236, 0.25);
    color: #fff;
}

/* Titre */
.forgot-card h1 {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
    color: #c9b6ff;
}

/* Texte d’intro */
.forgot-card .intro {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #e8e0ff;
}

/* Encadré d’infos */
.info-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #6227ec;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
}

.info-box a {
    color: #a97cff;
    text-decoration: none;
}

/* Labels */
.forgot-card label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #dcd2ff;
}

/* Inputs */
.forgot-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 15px;
}

/* Bouton */
.btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #6227ec, #a56bff);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    opacity: 0.85;
}

/* Message de confirmation / erreur */
.reset-message {
    margin-top: 25px;
    padding: 18px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    animation: fadeIn 0.3s ease;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Quand visible */
.reset-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Titre */
.reset-message h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #c9b6ff;
    font-weight: 600;
}

/* Succès */
.reset-message.success {
    border-left: 4px solid #6f3bff;
    box-shadow: 0 0 12px rgba(111, 59, 255, 0.3);
}

/* Erreur */
.reset-message.error {
    border-left: 4px solid #ff4d6d;
    box-shadow: 0 0 12px rgba(255, 77, 109, 0.3);
}

/* Animation d’apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-return {
    margin-top: 15px;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #6227ec, #a56bff);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
}

.btn-return:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
