:root {
    /* Main Colors */
    --primary-color: #E63946;
    --secondary-color: #F1C40F;
    --background-color: #0D1117;
    --text-color: #EAEAEA;
    --muted-text: #9CA3AF;
    --light-cream: #1E1E2E;
    --lighter-cream: #2A2A3C;
    --charcoal: #0D1117;
    --yellow: #FFDD55;

    /* Border Colors */
    --border-red: #E63946;
    --border-gold: #F1C40F;
    --border-gold-light: rgba(241, 196, 15, 0.1);
    --border-gold-medium: rgba(241, 196, 15, 0.3);

    /* Background Colors */
    --bg-charcoal-light: rgba(255, 255, 255, 0.05);
    --bg-charcoal-medium: rgba(255, 255, 255, 0.08);
    --bg-charcoal-dark: rgba(0, 0, 0, 0.7);
    --bg-red-light: rgba(230, 57, 70, 0.1);
    --bg-red-medium: rgba(230, 57, 70, 0.5);
    --bg-red-dark: rgba(230, 57, 70, 0.7);
    --bg-gold-light: rgba(241, 196, 15, 0.05);
    --bg-gold-medium: rgba(241, 196, 15, 0.1);
    --bg-gold-transparent: rgba(241, 196, 15, 0.3);
    --bg-cream-transparent: rgba(30, 30, 46, 0.85);
    --bg-cream-darker-transparent: rgba(20, 20, 32, 0.95);

    /* Shadow Colors */
    --shadow-light: rgba(0, 0, 0, 0.25);
    --shadow-medium: rgba(0, 0, 0, 0.35);
    --shadow-red: rgba(230, 57, 70, 0.5);
    --shadow-gold: rgba(241, 196, 15, 0.5);

    /* Gradient Colors */
    --gradient-bg: linear-gradient(135deg, #0D1117 0%, #1E1E2E 100%);
    --gradient-red-gold: linear-gradient(135deg, #E63946 0%, #F1C40F 100%);
    --gradient-text: linear-gradient(to right, #E63946, #F1C40F);
    --gradient-hero-title: linear-gradient(90deg, #F1C40F 0%, #E63946 100%);
    --gradient-testimonial-red: linear-gradient(45deg, #E63946, transparent);
    --gradient-testimonial-gold: linear-gradient(45deg, transparent, #F1C40F);

    /* Extras */
    --card-bg: var(--bg-cream-transparent);
    --input-bg: var(--bg-charcoal-light);
    --border-color: var(--bg-charcoal-medium);
    --light-text: var(--text-color);
    --success: #00cc88;
    --danger: #d51e1e;
    --warning: #ffcc00;
    --info: #3399ff;
    --transition: all 0.3s ease;
    --blur: blur(10px);
}

body {
    background: linear-gradient(135deg, #dbd6c4, #cfc9b5, #e8e4da);
    color: var(--light-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin: 0;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    text-shadow: 0.05em 0.05em 0.1em rgba(0,0,0,0.5),
         0.1em 0.1em 0.2em rgba(0,0,0,0.4),
         0.15em 0.15em 0.3em rgba(0,0,0,0.3);
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #FF5722 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.2;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 8px;
}

.register-container {
    width: 100%;
    background: linear-gradient(135deg, #dbd6c4, #cfc9b5, #e8e4da);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin: 0 auto;
    max-width: 440px;
}

.register-header {
    padding: 24px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #D4AF37;
}

.register-header::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 4px;
    z-index: 2;
    background: linear-gradient(135deg, #8B0000 0%, #D4AF37 100%);
}

.register-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(90deg, #ffcb00 40%, #e2c313 60%);
    background-clip: text;
    text-shadow: 0 -3px 0px #e93c04;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.6));
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.register-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    transition: transform 0.2s;
    margin-bottom: 10px;
    text-shadow: none;
}

.register-logo-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    color: var(--charcoal);
    background: var(--gradient-red-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px var(--shadow-red);
}

.register-logo-text {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffd504 40%, #d5d0a5 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: -1px -2px 0px rgba(102, 75, 75, 0.4);
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.6));
}

.register-body {
    padding: 24px 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #000;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    background: var(--input-bg);
    border: 1px solid #D4AF37;
    color: #000;
    padding: 12px 16px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    background: linear-gradient(135deg, #dbd6c4, #cfc9b5, #e8e4da);
    border-color: #D4AF37;
    color: #000;
    outline: none !important;
    box-shadow: none !important;
}

.form-control::placeholder {
    color: #000;
    opacity: 0.8;
}

.input-group {
    display: flex;
    position: relative;
    color: #fff !important;
}

.input-group input {
    border: 1px solid #D4AF37;
}

.input-group-text {
    background: var(--input-bg);
    border: 1px solid #D4AF37;
    padding: 12px 16px;
    font-size: 14px;
    color: #fed244;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group .form-control {
    flex: 1;
}

.password-toggle {
    cursor: pointer;
    color: var(--muted-text);
    transition: var(--transition);
    padding: 12px 16px;
    background: var(--input-bg);
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.password-toggle:hover {
    color: var(--secondary-color);
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    color: #1a1a1a;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    font-size: 15px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary:hover {
    box-shadow: 0 5px 15px var(--shadow-gold);
    color: white;
}

.invalid-feedback {
    color: var(--danger);
    font-size: 12px;
    display: none;
    margin-top: 6px;
    text-shadow: none;
}

.is-invalid {
    border-color: var(--danger) !important;
}

.is-invalid~.invalid-feedback {
    display: block;
}

.register-footer {
    padding: 20px;
    border-top: 1px solid #D4AF37;
    text-align: center;
    font-size: 14px;
    background: var(--bg-charcoal-light);
}

.register-footer a {
    color: #e93c04;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.register-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.form-check-input {
    border: 1px solid #D4AF37;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
    margin-left: -1rem !important;
    box-shadow: none;
}

.form-check-input:checked {
    background-color: #D4AF37;
    border-color: #D4AF37;
    box-shadow: none;
}

.form-check-input:not(:checked) {
    border-color: #D4AF37;
    box-shadow: none;
}

.form-check-label {
    color: #000;
    font-size: 14px;
    line-height: 1.4;
}

.forgot-link {
    color: #e93c04;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.forgot-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.alert {
    font-size: 14px;
    padding: 12px 16px;
    background: var(--bg-red-light);
    border: 1px solid var(--bg-red-medium);
    color: var(--danger);
    border-radius: 8px;
    margin-bottom: 20px;
    text-shadow: none;
}

.casino-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.casino-particle {
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(5vw, 5vh);
    }
    50% {
        transform: translate(10vw, -5vh);
    }
    75% {
        transform: translate(-5vw, 10vh);
    }
}

.register-success {
    text-align: center;
    padding: 24px;
}

.register-success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 204, 136, 0.2);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 16px;
    animation: bounce 1s ease;
}

.captcha-container {
    position: relative;
    display: flex;
}

#captchaImage {
    border: 1px solid #D4AF37;
    border-left: none;
    background-color: var(--input-bg);
    border-radius: 0 8px 8px 0;
    height: 48px;
    width: 188px;
    cursor: pointer;
    transition: var(--transition);
    object-fit: fill;
}

#captchaImage:hover {
    opacity: 0.8;
}

.btn-refresh {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #e93c04;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    z-index: 2;
}

.btn-refresh:hover {
    color: var(--secondary-color);
}

.text-primary {
    color: #e93c04 !important;
    text-decoration: none;
    transition: var(--transition);
}

.text-primary:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline;
}

.btn-signin {
    display: inline-block;
    align-items: center;
    background: #e93c04;
    color: #fff;
    border: 1px solid #e93c04;
    border-radius: 6px;
    float: right;
    margin-right: 10px !important;
    transition: var(--transition);
    text-decoration: none;
}

.btn-signin:hover {
    border: 1px solid #e93c04;
    color: #e93c04 !important;
    background: transparent;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.refCaptcha {
    transition: transform 0.2s ease;
    display: inline-block;
    cursor: pointer;
}

.refCaptcha.rotate {
    transform: rotate(360deg);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 769px) {
    body {
        padding: 6px;
        font-size: 12px;
    }
    #captchaImage {
        height: 40px;
    }
    .container {
        padding: 0;
    }
    .register-container {
        border-radius: 10px;
    }
    .register-header {
        padding: 20px 16px 16px;
    }
    .register-body {
        padding: 20px 16px;
    }
    .register-logo {
        gap: 10px;
        margin-bottom: 14px;
    }
    .register-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .register-logo-text {
        font-size: 18px;
    }
    .form-group {
        margin-bottom: 16px;
    }
    .form-label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    .form-control {
        padding: 10px 14px;
        font-size: 12px !important;
        border-radius: 6px;
    }
    .input-group-text {
        padding: 10px 14px;
        font-size: 12px;
    }
    .password-toggle {
        padding: 10px 14px;
    }
    .btn-primary {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 6px;
    }
    .register-footer {
        padding: 16px;
        font-size: 12px;
    }
    .form-check-input {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
    .form-check-label {
        font-size: 12px;
    }
    .password-hints {
        font-size: 10px;
    }
    .invalid-feedback {
        font-size: 10px;
    }
    .text-white {
        font-size: 12px;
        margin-top: 14px;
    }
    .mar.text-white {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .register-container {
        max-width: 100%;
    }
    
    .register-header h2 {
        font-size: 24px;
    }

}

@media (max-width: 360px) {
    .register-header {
        padding: 18px 14px 14px;
    }
    .register-body {
        padding: 18px 14px;
    }
    .register-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .register-logo-text {
        font-size: 16px;
    }
    .form-control {
        padding: 9px 12px;
        font-size: 12px !important;
    }
    .input-group-text {
        padding: 9px 12px;
        font-size: 12px;
    }
    .btn-primary {
        padding: 10px 18px;
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .register-header {
        padding: 16px 12px 12px;
    }
    .register-body {
        padding: 16px 12px;
    }
    .form-control {
        padding: 8px 10px;
    }
    .btn-primary {
        padding: 10px 16px;
    }
}

@media (min-width: 768px) {
    body {
        padding: 12px;
    }
    .container {
        padding: 12px;
    }
    .register-container {
        max-width: 480px;
    }
}

@media screen and (max-width: 480px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .form-check {
        margin-bottom: 6px;
        align-items: flex-start;
    }
    .form-check-label {
        padding-top: 2px;
    }
}
#togglePassword, #toggleConfirmPassword {
    color: #fed244;
}