/* Premium Dark Mode & Glassmorphic Custom Stylesheet */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #0d0c1d;
    overflow-x: hidden;
}

/* Stunning Fluid Animating Background Gradient Mesh */
.account-container {
    position: relative;
    background: linear-gradient(135deg, #100e17 0%, #0c0813 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    z-index: 1;
    overflow: hidden;
}

/* Glowing Ambient Decorative Shapes */
.account-container::before,
.account-container::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.45;
    animation: floatGlow 12s infinite alternate ease-in-out;
}

.account-container::before {
    background: radial-gradient(circle, #7f00ff, #e100ff);
    top: -50px;
    left: -50px;
}

.account-container::after {
    background: radial-gradient(circle, #00d2ff, #0072ff);
    bottom: -50px;
    right: -50px;
    animation-delay: -6s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(60px, 40px) scale(1.2);
    }
}

/* Glassmorphic Auth Roster Box */
.account-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    max-width: 440px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: #ffffff;
}

.account-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 60px rgba(127, 0, 255, 0.15), 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Titles & Texts */
.account-box h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.account-box .form-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

/* Premium Floating Input Fields */
.account-box .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    transition: all 0.3s ease !important;
}

.account-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

.account-box .form-control:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #9d4edd !important;
    box-shadow: 0 0 12px rgba(157, 78, 221, 0.4) !important;
    outline: none !important;
}

/* Relative Wrapper for Password Input Eye Toggle */
.password-field-wrap {
    position: relative;
}

.password-field-wrap .form-control {
    padding-right: 48px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: #ffffff;
}

/* Premium Gradient Login Button */
.account-box .btn-primary-gradient {
    background: linear-gradient(135deg, #7f00ff 0%, #e100ff 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 8px 20px rgba(127, 0, 255, 0.3) !important;
}

.account-box .btn-primary-gradient:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(127, 0, 255, 0.45) !important;
    filter: brightness(1.05) !important;
}

.account-box .btn-primary-gradient:active {
    transform: translateY(1px) !important;
    box-shadow: 0 4px 10px rgba(127, 0, 255, 0.2) !important;
}

/* Links & Redirects */
.account-box a {
    color: #b388ff !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.account-box a:hover {
    color: #d1b3ff !important;
    text-shadow: 0 0 8px rgba(209, 179, 255, 0.3);
}

.account-box .back-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 13px;
    text-decoration: none;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.25s ease;
}

.account-box .back-link-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

/* Custom Styled Premium Checkbox */
.custom-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.custom-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox-wrap input {
    display: none;
}

.custom-checkbox-indicator {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom-checkbox-wrap input:checked + .custom-checkbox-indicator {
    background: #7f00ff;
    border-color: #7f00ff;
    box-shadow: 0 0 8px rgba(127, 0, 255, 0.5);
}

.custom-checkbox-indicator::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.custom-checkbox-wrap input:checked + .custom-checkbox-indicator::after {
    opacity: 1;
}

/* Validation styling */
.text-danger {
    font-size: 13px;
    color: #ff6b6b !important;
    margin-top: 5px;
    display: block;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15) !important;
    border: 1px solid rgba(46, 204, 113, 0.3) !important;
    border-radius: 12px !important;
    color: #2ecc71 !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    text-shadow: none !important;
}

/* Responsiveness Settings */
@media (max-width: 576px) {
    .account-box {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .account-box h2 {
        font-size: 24px;
    }
}
