/* Global Styles */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0d1117;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 40px;
    background: linear-gradient(145deg, #0d1117, #000c1a);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 15px 30px;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #00bfff;
    z-index: 1000;
    box-shadow: 0 0 10px #00bfff;
}

.header-container {
    display: flex;
    width: 100%;
    align-items: center;
}

.logo {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  background: linear-gradient(to bottom right, #0f172a, #1e293b); /* Ton sombre */
  color: #00d4ff; /* Ton clair */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); /* Ombre moderne */
  display: inline-block;
  width: fit-content;
}

.logo .main {
  font-size: 28px;
  font-weight: bold;
  color: #00d4ff; /* Cyan néon */
}

.logo .sub {
  font-size: 20px;
  color: #38bdf8; /* Bleu clair */
  letter-spacing: 1px;
  font-weight: 500;
}


nav a {
    margin: 0 15px;
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: 0.3s ease;
}

nav a.active {
    border-bottom: 2px solid #00bfff;
}

nav a:hover {
    color: #00bfff;
}

.btn, .signup-btn {
    background: #00ff99;
    padding: 8px 15px;
    border-radius: 8px;
    color: #0d1117;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn:hover, .signup-btn:hover {
    background: #00bfff;
    box-shadow: 0 0 10px #00bfff;
}

.signup-btn {
    margin-left: 180px;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 400px;
    background: rgba(0, 191, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0px 0px 15px rgba(0, 255, 153, 0.7);
    text-align: center;
    backdrop-filter: blur(15px);
    margin-top: 200px;
}

/* URL Check */
.url-check {
    background: rgba(0, 255, 153, 0.2);
    padding: 10px;
    border-radius: 15px;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin: 10px 0 5px;
    font-size: 16px;
    color: #00ffcc;
    text-align: left;
    margin-left: 20px;
}

input {
    width: 90%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #00ffcc;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    box-shadow: 0 0 8px #00ffcc;
}

/* Password */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 60%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #00ffcc;
}

/* Button */
button {
    width: 90%;
    background: linear-gradient(90deg, #00bfff, #00ff99);
    color: #0d1117;
    padding: 12px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 15px #00ff99;
    transition: all 0.3s ease-in-out;
}

button:hover {
    box-shadow: 0 0 20px #00ff99;
}

/* Links */
.forgot-password-link {
    color: #00bfff;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-top: 10px;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

a {
    color: #00bfff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Forgot Password Button */
.forgot-password-btn {
    width: 90%;
    background: transparent;
    color: #00bfff;
    padding: 12px;
    border: 2px solid #00bfff;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 10px #00bfff;
    transition: all 0.3s ease-in-out;
}

.forgot-password-btn:hover {
    background: #00bfff;
    color: #0d1117;
    box-shadow: 0 0 20px #00bfff;
}

/* Avatar */
.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00ff99;
    box-shadow: 0 0 10px #00ff99;
    transition: transform 0.3s ease-in-out;
}

.avatar-preview:hover {
    transform: scale(1.05);
}

.modify-avatar-btn {
    background-color: #00ff99;
    color: #0d1117;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease-in-out;
}

.modify-avatar-btn:hover {
    background-color: #00bfff;
    color: #0d1117;
}

/* Select */
.custom-select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #00ffcc;
    border-radius: 8px;
    background-color: #111;
    color: #00ffcc;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: 0.3s;
}

.custom-select:hover {
    border-color: #00bfff;
}

.custom-select:focus {
    box-shadow: 0 0 8px #00ffcc;
}

@media (max-width: 600px) {
    .custom-select {
        font-size: 14px;
        padding: 8px;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #111;
    margin: 15% auto;
    padding: 20px;
    width: 300px;
    border-radius: 10px;
    text-align: left;
    color: #00ffcc;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 0 10px #00bfff;
    position: relative;
}

.modal .close {
    position: absolute;
    top: 0px;
    right: 5px;
    cursor: pointer;
    color: red;
    font-size: 40px;
    font-weight: bold;
}

.close-text {
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 18px;
    font-weight: normal;
    color: #00ffcc;
    cursor: pointer;
}

.close:hover, .close-text:hover {
    color: #ff4c4c;
}

/* Messages */
.message {
    margin-top: 10px;
    padding: 20px;
    border-radius: 5px;
    text-align: left;
    font-weight: bold;
}
.error {
    color: #D8000C;
    background-color: #FFD2D2;
}
.success {
    color: #4F8A10;
    background-color: #DFF2BF;
}

/* Example password */
.example-password {
    display: block;
    text-align: center;
    margin-top: 5px;
    font-weight: bold;
    color: #00ffcc;
}
.logo-group {
    display: flex;
    align-items: center;
    gap: 10px; /* Espace entre le logo et le texte */
}

.logo {
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
}
.logo span {
    font-weight: normal;
    font-size: 14px;
    color: #888;
}
