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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #16a34a 0%, #153f80 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    font-size: 48px;
    margin-bottom: 10px;
}

h1 {
    text-align: center;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 28px;
}

.subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 14px;
}

.errors {
    background: #fee2e2;
    color: #991b1b;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #f87171;
    animation: slideDown 0.3s ease;
}

.errors p {
    margin: 6px 0;
    font-size: 14px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

label i {
    color: #6acb3e;
    font-size: 16px;
}

input {
    width: 100%;
    padding: 13px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f9fafb;
}

input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

.subdomain-feedback {
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    display: none;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.subdomain-feedback:not(:empty) {
    display: flex;
}

.subdomain-feedback.checking {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #fcd34d;
}

.subdomain-feedback.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #34d399;
}

.subdomain-feedback.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #f87171;
}

.subdomain-feedback i {
    font-size: 16px;
}

.preview-url {
    margin-top: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    animation: scaleIn 0.4s ease;
    font-size: 13px;
}

.preview-url i {
    font-size: 18px;
}

.preview-url strong {
    color: #fef3c7;
    word-break: break-all;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #087c56 0%, #0e7337 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
    font-size: 14px;
}

.login-link a {
    color: #0d753c;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.back-home {
    text-align: center;
    margin-bottom: 20px;
}

.back-home a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-home a:hover {
    color: #667eea;
}

@media (max-width: 768px) {
    .register-container {
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    h1 {
        font-size: 24px;
    }
}

/* ✅ NOUVEAU : Bandeau parrainage */
.referral-banner {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.referral-banner .icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.referral-banner .text {
    font-size: 15px;
    font-weight: 600;
}
.referral-banner .store-name {
    font-size: 18px;
    font-weight: 900;
    margin-top: 4px;
}