/**
 * Styles for the Registration page
 * Updated with complete affiliate code styling and animations
 */

/* Main container */
body.register-page {
    background-color: #000000;
    color: #fff;
    font-family: 'IBM Plex Sans Thai', sans-serif !important;
}

body {
    background-image: 
        linear-gradient(rgba(249, 115, 22, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.15) 1px, transparent 1px),
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

.register-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    position: relative;
    z-index: 1;
    padding: 0 20px;
    color: #fff;
    font-family: 'IBM Plex Sans Thai', sans-serif;
}

/* Particles background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Header Section */
.register-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1s ease forwards;
}

.register-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #F97316, #F43F5E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: subtleGlow 2s ease-in-out infinite alternate;
    display: inline-block;
}

.register-tagline {
    font-size: 1.4rem;
    color: #3B82F6;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

/* Main Content */
.register-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
    animation: fadeIn 1s ease forwards 0.3s;
}

/* Registration Form */
.register-form-wrapper {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 40px;
    position: relative;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.register-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F97316, #F43F5E);
    z-index: 1;
    border-radius: 15px 15px 0 0;
}

.form-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #F97316;
    font-weight: 600;
}

.error-message {
    display: flex;
    align-items: center;
    background-color: rgba(255, 87, 87, 0.15);
    border-left: 4px solid #ff5757;
    color: #fff;
    padding: 16px 20px;
    margin-bottom: 30px;
    border-radius: 0 10px 10px 0;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 87, 87, 0.15);
    animation: fadeIn 0.5s ease forwards;
}

.error-icon {
    background-color: #ff5757;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.error-content {
    flex-grow: 1;
}

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

.form-group {
    margin-bottom: 28px;
    flex: 1;
    min-width: 250px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #F97316;
    font-size: 1.05rem;
}

.form-group .required {
    color: #F97316;
    margin-left: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 15px 18px;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    height: 54px;
    box-sizing: border-box;
    font-family: 'IBM Plex Sans Thai', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #F97316;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
    background-color: rgba(249, 115, 22, 0.05);
    transform: translateY(-2px);
}

.field-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    margin-bottom: 0;
}

.field-status {
    margin-top: 8px;
    font-size: 0.9rem;
    min-height: 20px;
    transition: all 0.3s ease;
}

.match-status {
    margin-top: 8px;
    font-size: 0.9rem;
    min-height: 20px;
    transition: all 0.3s ease;
}

.match-status.match {
    color: #F97316;
}

.match-status.no-match {
    color: #ff5757;
}

/* Password Field with Toggle */
.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #F97316;
    cursor: pointer;
    z-index: 2;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.password-strength-meter {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

/* ============ AFFILIATE CODE STYLES ============ */
.affiliate-group {
    margin-top: 35px;
    margin-bottom: 35px;
    position: relative;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.affiliate-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: affiliateShine 4s ease-in-out infinite;
}

.affiliate-group:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.affiliate-group label {
    color: #3B82F6 !important;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.affiliate-group label::before {
    content: "🎁";
    font-size: 1.3rem;
    animation: bounceGift 2s ease-in-out infinite;
}

.affiliate-field {
    position: relative;
}

.affiliate-group input {
    background-color: rgba(59, 130, 246, 0.1) !important;
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    font-size: 1.05rem;
    padding-right: 160px !important; /* Space for status */
}

.affiliate-group input:focus {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4) !important;
    background-color: rgba(59, 130, 246, 0.08) !important;
    transform: translateY(-3px);
}

.affiliate-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

/* Affiliate Input States */
.affiliate-group input.affiliate-valid {
    border-color: #10B981 !important;
    background-color: rgba(16, 185, 129, 0.12) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important;
    animation: validPulse 2s ease-in-out infinite;
}

.affiliate-group input.affiliate-invalid {
    border-color: #EF4444 !important;
    background-color: rgba(239, 68, 68, 0.12) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4) !important;
}

/* Affiliate Status Display */
.affiliate-status {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
}

.status-loading {
    display: none;
    align-items: center;
    gap: 8px;
    color: #3B82F6;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top: 2px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Affiliate Message Styles */
.affiliate-message {
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.affiliate-message.valid {
    color: #10B981;
    animation: messageSlideIn 0.5s ease forwards;
}

.affiliate-message.valid::before {
    content: "✓";
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    animation: successBounce 0.6s ease forwards;
}

.affiliate-message.invalid {
    color: #EF4444;
    animation: messageSlideIn 0.5s ease forwards;
}

.affiliate-message.invalid::before {
    content: "✕";
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    animation: errorShake 0.6s ease forwards;
}

.affiliate-message.info {
    color: #3B82F6;
}

.affiliate-message.info::before {
    content: "ℹ";
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.affiliate-message.error {
    color: #EF4444;
}

/* Credits Preview Animation */
.credits-preview {
    position: absolute;
    top: -70px;
    right: 0;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
    text-align: center;
    min-width: 140px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.credits-preview.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.credits-preview::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #10B981;
}

.credits-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 30px;
    animation: creditShine 2s ease-in-out infinite;
}

.credits-amount {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.credits-label {
    font-size: 0.85rem;
    opacity: 0.95;
    margin-top: 4px;
    font-weight: 500;
}

/* Terms Checkbox */
.field-error {
    color: #ff5757;
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 500;
}

.terms-group {
    margin-top: 30px;
    position: relative;
}

.terms-group.invalid .checkmark {
    border-color: #ff5757;
    background-color: rgba(255, 87, 87, 0.1);
    animation: errorShake 0.5s ease forwards;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    font-size: 0.95rem;
    padding-left: 35px;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #F97316;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.3);
    transform: scale(1.05);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #F97316;
    border-color: #F97316;
    animation: checkboxPop 0.3s ease forwards;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
    animation: checkmarkDraw 0.3s ease forwards 0.1s;
}

.terms-text {
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.terms-link {
    color: #3B82F6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.terms-link:hover {
    text-decoration: underline;
    color: #F97316;
}

/* Submit Button */
.form-submit {
    margin-top: 30px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #F97316, #F43F5E);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.submit-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.submit-btn:hover:before {
    left: 100%;
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.login-link a {
    color: #3B82F6;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

/* Benefits Section */
.register-benefits {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.benefits-title {
    font-size: 1.3rem;
    color: #F97316;
    margin-bottom: 20px;
    text-align: center;
}

.benefits-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(249, 115, 22, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    transition: all 0.3s ease;
}

.benefits-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: #3B82F6;
}

.benefit-icon {
    font-size: 2rem;
    color: #F97316;
}

.benefit-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #3B82F6;
    margin-bottom: 5px;
}

.benefit-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Registration Success */
.register-success {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 40px;
    position: relative;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.register-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F97316, #F43F5E);
    z-index: 1;
    border-radius: 15px 15px 0 0;
}

.success-icon {
    font-size: 3rem;
    color: #F97316;
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    animation: scaleIn 0.5s ease forwards;
}

.success-title {
    font-size: 2rem;
    color: #F97316;
    margin-bottom: 15px;
}

.success-message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.free-credits-info {
    margin: 30px 0;
    animation: fadeInUp 0.5s ease forwards 0.5s;
    opacity: 0;
}

.credit-badge {
    display: inline-flex;
    flex-direction: column;
    background: linear-gradient(135deg, #F97316, #F43F5E);
    padding: 20px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.5);
    animation: pulse 2s infinite;
}

.credit-amount {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.credit-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.credit-welcome {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Affiliate Bonus Message */
.affiliate-bonus-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.15));
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 20px;
    padding: 25px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
    animation: bonusGlow 2s ease-in-out infinite alternate;
}

.affiliate-bonus-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
    animation: bonusShine 3s ease-in-out infinite;
}

.bonus-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: bounceParty 1.5s ease-in-out infinite;
}

.bonus-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.bonus-code {
    background: linear-gradient(45deg, #10B981, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.3rem;
    font-family: monospace;
    padding: 2px 8px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
}

.bonus-amount {
    color: #10B981;
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.credit-benefits {
    margin: 40px 0;
    padding: 30px;
    background-color: rgba(249, 115, 22, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    animation: fadeIn 0.5s ease forwards 1s;
    opacity: 0;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    text-align: left;
}

.benefit-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeInRight 0.5s ease forwards;
    opacity: 0;
}

.benefit-item:nth-child(1) {
    animation-delay: 1.1s;
}

.benefit-item:nth-child(2) {
    animation-delay: 1.3s;
}

.benefit-item:nth-child(3) {
    animation-delay: 1.5s;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.benefit-item .benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-item .benefit-text {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    animation: fadeInUp 0.5s ease forwards 1.7s;
    opacity: 0;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 180px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #F97316, #F43F5E);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: linear-gradient(45deg, #3B82F6, #8B5CF6);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.ref-code-hint{
    color: #10b981;
}

/* ============ ANIMATIONS ============ */
@keyframes subtleGlow {
    from {
        filter: drop-shadow(0 0 2px rgba(249, 115, 22, 0.7));
    }
    to {
        filter: drop-shadow(0 0 4px rgba(244, 63, 94, 0.7));
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounceGift {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

@keyframes affiliateShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes validPulse {
    0% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
    }
    100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    }
}

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

@keyframes successBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

@keyframes creditShine {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes checkboxPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes checkmarkDraw {
    0% {
        opacity: 0;
        transform: scale(0) rotate(45deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(45deg);
    }
}

@keyframes bonusGlow {
    from {
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
    }
    to {
        box-shadow: 0 0 35px rgba(16, 185, 129, 0.5);
    }
}

@keyframes bonusShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes bounceParty {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    40% {
        transform: translateY(-10px) rotate(5deg);
    }
    60% {
        transform: translateY(-5px) rotate(-5deg);
    }
}

/* ============ RESPONSIVE STYLES ============ */
@media screen and (max-width: 768px) {
    .register-container {
        margin: 20px auto;
        padding: 0 20px;
    }
    
    .register-title {
        font-size: 2.5rem;
    }
    
    .register-tagline {
        font-size: 1.2rem;
    }
    
    .register-form-wrapper,
    .register-success {
        padding: 30px 25px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        width: 100%;
        margin-bottom: 25px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="password"] {
        font-size: 16px; /* Prevents zoom on mobile iOS */
        padding: 14px 16px;
    }
    
    .affiliate-group {
        padding: 20px;
    }
    
    .affiliate-group input {
        padding-right: 120px !important;
        font-size: 1rem;
    }
    
    .status-loading {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .credits-preview {
        position: static;
        margin-top: 15px;
        transform: none;
        opacity: 1;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .checkbox-container {
        padding-left: 30px;
    }
}

@media screen and (max-width: 480px) {
    .register-title {
        font-size: 2rem;
    }

    .register-tagline {
        font-size: 1rem;
    }

    .form-title,
    .success-title {
        font-size: 1.5rem;
    }
    
    .register-form-wrapper,
    .register-success {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .affiliate-group {
        padding: 15px;
    }
    
    .affiliate-group input {
        padding-right: 100px !important;
        font-size: 0.95rem;
        letter-spacing: 1px;
    }
    
    .credit-badge {
        width: 100px;
        height: 100px;
        padding: 15px;
    }
    
    .credit-amount {
        font-size: 2rem;
    }
    
    .error-message {
        padding: 12px 15px;
    }
    
    .error-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .affiliate-bonus-message {
        padding: 20px;
    }
    
    .bonus-text {
        font-size: 1rem;
    }
    
    .bonus-code {
        font-size: 1.1rem;
    }
}