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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #0a0a0a;
    background-image: radial-gradient(ellipse at 80% 50%, rgba(255, 180, 0, 0.08) 0%, transparent 60%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c3c4c7;
}

.login-page {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 24px;
}

.logo-container img {
    max-width: 120px;
    height: auto;
}

.login-form {
    background: #1d2327;
    border: 1px solid #2c3338;
    border-radius: 8px;
    padding: 26px 24px 34px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #c3c4c7;
    margin-bottom: 6px;
    font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    font-size: 16px;
    background: #2c3338;
    border: 1px solid #50575e;
    border-radius: 4px;
    color: #f0f0f1;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #72aee6;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #9ec2e6;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2271b1;
    cursor: pointer;
}

.remember-me label {
    font-size: 14px;
    color: #c3c4c7;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
    background: #ffb900;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-login:hover {
    background: #ffc733;
}

.btn-login:active {
    background: #e6a700;
}

.error-message {
    background: #3c1518;
    border-left: 4px solid #d63638;
    color: #f0f0f1;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
}

.success-message {
    background: #1e3a1e;
    border-left: 4px solid #00a32a;
    color: #f0f0f1;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
}

.login-links {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.login-links a {
    color: #72aee6;
    text-decoration: none;
}

.login-links a:hover {
    color: #9ec2e6;
    text-decoration: underline;
}

.login-links .separator {
    color: #50575e;
    margin: 0 4px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
}

.back-link a {
    color: #72aee6;
    text-decoration: none;
}

.back-link a:hover {
    color: #9ec2e6;
    text-decoration: underline;
}

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 13px;
}

.language-switcher select {
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    font-size: 13px;
    color: #2c3338;
    cursor: pointer;
}

.language-switcher .btn-modify {
    padding: 4px 12px;
    font-size: 13px;
    background: transparent;
    border: 1px solid #2271b1;
    color: #72aee6;
    border-radius: 3px;
    cursor: pointer;
}

.language-switcher .btn-modify:hover {
    background: rgba(34, 113, 177, 0.1);
}

/* Pages secondaires */
.page-content {
    background: #1d2327;
    border: 1px solid #2c3338;
    border-radius: 8px;
    padding: 26px 24px 34px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-content h2 {
    color: #f0f0f1;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
}

/* Dashboard */
.dashboard {
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    color: #f0f0f1;
    font-size: 24px;
    font-weight: 400;
}

.dashboard-card {
    background: #1d2327;
    border: 1px solid #2c3338;
    border-radius: 8px;
    padding: 24px;
}

.dashboard-card p {
    color: #c3c4c7;
    font-size: 15px;
    line-height: 1.6;
}

.btn-logout {
    padding: 8px 16px;
    font-size: 14px;
    background: transparent;
    border: 1px solid #d63638;
    color: #d63638;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.btn-logout:hover {
    background: rgba(214, 54, 56, 0.1);
}
