/* === INDEPENDENT REGISTER WIDGET STYLES === */
body {
    background-image: url('../img/background.jpg');
    /* Ensure bg loads if isolated */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Override CMS Defaults */
h1.page-title {
    display: none !important;
}

.col-12.mx-auto {
    width: auto !important;
    margin: 0 !important;
    flex: none !important;
    max-width: none !important;
}

/* Container & Animation */
.register-container {
    width: 100%;
    max-width: 450px;
    background: rgba(22, 15, 5, 0.85);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(251, 133, 7, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 1000;
    margin: 20px auto;
    /* Centered by flex parent */
    border-top: 2px solid #fb8507;
    animation: fadeInUp 0.8s ease-out, borderGlow 4s infinite alternate;
}

.reg-logo-small {
    max-width: 100px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(251, 133, 7, 0.5));
    transition: transform 0.3s;
}

.reg-logo-small:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 0 20px rgba(251, 133, 7, 0.8));
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderGlow {
    0% {
        border-color: rgba(251, 133, 7, 0.3);
    }

    100% {
        border-color: rgba(251, 133, 7, 0.8);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(251, 133, 7, 0.2);
    }
}

/* Typography */
.page-title {
    margin-bottom: 35px;
    font-size: 28px !important;
    color: #fff !important;
    text-shadow: 0 0 15px #fb8507;
    letter-spacing: 3px;
    font-weight: 900;
    text-align: center;
    font-family: 'Michroma', sans-serif;
    text-transform: uppercase;
}

/* Form Groups */
.form-group {
    margin-bottom: 22px;
    text-align: left;
}

.form-group label {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 8px;
    display: block;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    font-family: 'Rajdhani', sans-serif;
}

.form-group label i {
    color: #fb8507;
    margin-right: 5px;
    width: 20px;
    text-align: center;
}

/* Inputs */
.input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.input-group-addon {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(251, 133, 7, 0.3);
    border-right: none;
    color: #fb8507;
    min-width: 50px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px 0 0 5px;
}

.form-control {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(251, 133, 7, 0.3) !important;
    color: #ffffff !important;
    height: 48px !important;
    box-shadow: none !important;
    border-left: none !important;
    transition: all 0.3s;
    font-size: 15px !important;
    width: 100%;
    border-radius: 0 5px 5px 0;
    padding: 10px 15px;
}

/* Focus State */
.input-group:hover .form-control,
.input-group:hover .input-group-addon,
.form-control:focus,
.form-control:focus+.input-group-addon {
    border-color: #fb8507 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    box-shadow: 0 0 15px rgba(251, 133, 7, 0.2) !important;
}

.form-control:focus {
    outline: none;
}

/* Terms */
#grp-terms {
    color: #ccc;
    font-size: 13px;
    margin: 20px 0;
    text-align: center;
}

#grp-terms a {
    color: #fb8507;
    text-decoration: none;
    font-weight: bold;
}

#grp-terms input[type="checkbox"] {
    vertical-align: middle;
    margin-right: 8px;
}

/* Primary Button */
.btn-primary {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #fb8507, #ff5e00);
    border: none;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Michroma', sans-serif;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(251, 133, 7, 0.3);
    margin-top: 15px;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff5e00, #fb8507);
    box-shadow: 0 0 30px rgba(251, 133, 7, 0.6);
    transform: translateY(-3px) scale(1.02);
}

/* Home Button */
.btn-home-custom {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #bbb;
    text-transform: uppercase;
    font-size: 12px;
    text-decoration: none !important;
    transition: all 0.3s;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Michroma', sans-serif;
}

.btn-home-custom:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px #fff;
    transform: translateY(-2px);
    border-color: #fff;
}

.btn-home-custom i {
    margin-right: 8px;
    color: #fb8507;
}

.btn-home-custom:hover i {
    color: #000;
}

/* Responsive */
@media (max-width: 500px) {
    .register-container {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 10px;
    }
}