/* Style pour la page d'inscription */
:root {
    --primary-color: #ff4655;
    --secondary-color: #0f1923;
    --accent-color: #ece8e1;
    --text-color: #333;
    --light-text: #fff;
    --dark-text: #0f1923;
    --gray-bg: #f5f5f5;
    --border-color: #e1e1e1;
    --success-color: #4cd964;
    --warning-color: #ffcc00;
    --error-color: #ff3b30;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    opacity: 0.03;
    z-index: -2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #e63e4c;
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 70, 85, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-secondary:hover {
    background-color: #1a2530;
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 25, 35, 0.3);
}

.btn-login, .btn-register {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}

.btn-login {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid var(--light-text);
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-register {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-register:hover {
    background-color: #e63e4c;
}

.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background-color: var(--secondary-color);
    color: var(--light-text);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links ul {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--light-text);
}

/* Register Page */
.register-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 50px 0;
    position: relative;
}

.register-container {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 40px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.register-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.register-header p {
    color: #777;
    font-size: 1rem;
}

.register-form {
    margin-top: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 70, 85, 0.2);
}

.password-requirements {
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
}

.password-strength {
    height: 5px;
    background-color: #ddd;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: var(--transition);
}

.password-strength-text {
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 500;
}

.weak {
    background-color: var(--error-color);
    width: 25%;
}

.medium {
    background-color: var(--warning-color);
    width: 50%;
}

.strong {
    background-color: #ffb700;
    width: 75%;
}

.very-strong {
    background-color: var(--success-color);
    width: 100%;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.terms-checkbox input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.terms-checkbox label {
    font-size: 0.9rem;
}

.terms-checkbox a {
    text-decoration: underline;
}

.register-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 10px;
}

.register-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.register-divider::before,
.register-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.register-divider span {
    padding: 0 15px;
    color: #777;
    font-size: 0.9rem;
}

.social-register {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #555;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-3px);
}

.google:hover {
    background-color: #DB4437;
    color: white;
}

.facebook:hover {
    background-color: #4267B2;
    color: white;
}

.twitter:hover {
    background-color: #1DA1F2;
    color: white;
}

.discord:hover {
    background-color: #7289DA;
    color: white;
}

.login-link {
    text-align: center;
    font-size: 0.9rem;
}

.error-message, .success-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.error-message {
    background-color: rgba(255, 59, 48, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.success-message {
    background-color: rgba(76, 217, 100, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(76, 217, 100, 0.3);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

.footer-logo h3 {
    font-size: 1.3rem;
}

.footer-links, .footer-contact {
    margin-bottom: 20px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #999;
}

/* Responsive Design */
@media (max-width: 992px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .register-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .register-container {
        padding: 20px;
    }
    
    .register-header h2 {
        font-size: 1.8rem;
    }
    
    .social-register {
        flex-wrap: wrap;
    }
}
