/* Dark Theme Base */
:root {
    --dark-bg: #2b2c40;
    --dark-card-bg: rgba(43, 44, 64, 0.95);
    --dark-text: #a3a4cc;
    --dark-heading: #ffffff;
    --dark-border: #444564;
    --dark-input-bg: rgba(30, 31, 47, 0.55);
    --dark-input-border: #444564;
    --dark-hover: #363853;
    --accent-color: #7367f0;
    --accent-hover: #635ce7;
}

/* Global Dark Theme Overrides */
body {
    background-color: var(--dark-bg) !important;
    color: var(--dark-text) !important;
    min-height: 100vh;
}

/* Authentication Pages */
.authentication-wrapper {
    background-color: var(--dark-bg) !important;
}

.authentication-bg {
    background-color: var(--dark-card-bg) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(12px);
}

/* Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--dark-heading) !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
}

p {
    color: var(--dark-text) !important;
}

/* Form Elements */
.form-label {
    color: #a3a4cc !important;
    font-size: 0.9375rem !important;
    font-weight: 400 !important;
    margin-bottom: 0.5rem !important;
}

.form-control {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border-radius: 0.375rem !important;
    padding: 0.4375rem 0.875rem !important;
    font-size: 0.9375rem !important;
    min-height: calc(1.5em + 0.875rem + 2px) !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.form-control:focus {
    border-color: #696cff !important;
    box-shadow: 0 0 0.25rem 0.05rem rgba(105, 108, 255, 0.1) !important;
    background-color: transparent !important;
}

.form-control:hover {
    border-color: rgba(105, 108, 255, 0.5) !important;
}

.form-control::placeholder {
    color: rgba(163, 164, 204, 0.5) !important;
}

/* Password Toggle Button */
.form-password-toggle .input-group-text {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-left: none !important;
    color: #a3a4cc !important;
    padding-right: 0.875rem !important;
    padding-left: 0.875rem !important;
}

.form-password-toggle .form-control {
    border-right: none !important;
}

.form-password-toggle .input-group-text:hover {
    color: #696cff !important;
}

/* Form Check */
.form-check {
    min-height: 1.5rem !important;
    margin-bottom: 0 !important;
}

.form-check-input {
    width: 1.125rem !important;
    height: 1.125rem !important;
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    margin-top: 0.1875rem !important;
}

.form-check-input:checked {
    background-color: #696cff !important;
    border-color: #696cff !important;
}

.form-check-label {
    color: #a3a4cc !important;
    font-size: 0.9375rem !important;
}

/* Links */
a {
    color: #696cff !important;
    text-decoration: none !important;
}

a:hover {
    color: #787bff !important;
    text-decoration: none !important;
}

/* Button */
.btn-primary {
    background-color: #696cff !important;
    border-color: #696cff !important;
    color: #fff !important;
    box-shadow: 0 0.125rem 0.25rem 0 rgba(105, 108, 255, 0.4) !important;
}

.btn-primary:hover {
    background-color: #5f61e6 !important;
    border-color: #5f61e6 !important;
    transform: translateY(-1px) !important;
}

.btn {
    font-size: 0.9375rem !important;
    padding: 0.4375rem 1.25rem !important;
    border-radius: 0.375rem !important;
}

/* Spacing */
.mb-3 {
    margin-bottom: 1rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Back to login link */
.ri-arrow-left-s-line {
    font-size: 1.25rem !important;
    margin-right: 0.5rem !important;
}

/* Toast Notifications */
.colored-toast {
    background: #2b2c40 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    min-width: 300px !important;
    border-left: 4px solid transparent !important;
}

.colored-toast.swal2-icon-success {
    border-left-color: #28c76f !important;
}

.colored-toast.swal2-icon-error {
    border-left-color: #ea5455 !important;
}

.colored-toast .swal2-title {
    color: #fff !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.toast-progress {
    background: rgba(115, 103, 240, 0.7) !important;
    height: 2px !important;
    bottom: 0 !important;
}

/* Toast Icons */
.toast-icon-success,
.toast-icon-error {
    margin-right: 12px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.toast-icon-success i {
    color: #28c76f !important;
}

.toast-icon-error i {
    color: #ea5455 !important;
}

/* Toast Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.colored-toast.swal2-show {
    animation: slideInRight 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.colored-toast.swal2-hide {
    animation: slideOutRight 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Toast Container */
.swal2-container.swal2-top-end {
    align-items: flex-start !important;
    padding-top: 16px !important;
    padding-right: 16px !important;
}

/* Toast Stack Effect */
.swal2-container.swal2-top-end > .swal2-popup:not(:first-child) {
    margin-top: 8px !important;
}

/* Social Media Button Colors with Hover Effects */
.btn-text-facebook:hover { 
    color: #3b5998 !important;
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.2) !important;
}
.btn-text-twitter:hover { 
    color: #1da1f2 !important;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.2) !important;
}
.btn-text-github:hover { 
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1) !important;
}
.btn-text-google-plus:hover { 
    color: #dd4b39 !important;
    box-shadow: 0 4px 12px rgba(221, 75, 57, 0.2) !important;
}

/* Form Check Elements */
.form-check-label {
    color: var(--dark-text) !important;
    font-size: 0.9rem;
}

.btn-icon {
    background: var(--dark-input-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--dark-text) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    width: 46px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-icon:hover {
    background: var(--dark-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Form Label */
.form-label {
    color: var(--dark-heading) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Dark Theme Background Elements */
.authentication-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(105, 108, 255, 0.08), transparent 70%);
    z-index: -1;
}

.authentication-wrapper::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(105, 108, 255, 0.05), transparent 60%);
    z-index: -1;
}

/* Input Placeholder Color */
::placeholder {
    color: rgba(163, 164, 204, 0.5) !important;
}

/* Custom Scrollbar for Dark Theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #696cff;
}

/* Additional Classy Elements */
.authentication-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(115, 103, 240, 0.1), transparent 70%);
    z-index: -1;
}

.authentication-wrapper::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(115, 103, 240, 0.08), transparent 60%);
    z-index: -1;
}

/* Smooth Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.authentication-bg > * {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Sweet Alert Dark Theme */
.swal2-popup {
    background: var(--dark-card-bg) !important;
    color: var(--dark-text) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
}

.swal2-title {
    color: var(--dark-heading) !important;
    font-weight: 600 !important;
}

.swal2-content {
    color: var(--dark-text) !important;
}

/* Toast Notifications */
.colored-toast {
    background: #2b2c40 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    min-width: 300px !important;
    border-left: 4px solid transparent !important;
}

.colored-toast.swal2-icon-success {
    border-left-color: #28c76f !important;
}

.colored-toast.swal2-icon-error {
    border-left-color: #ea5455 !important;
}

.colored-toast .swal2-title {
    color: #fff !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.toast-title.single-line {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.toast-progress {
    background: rgba(115, 103, 240, 0.7) !important;
    height: 2px !important;
    bottom: 0 !important;
}

/* Toast Icons */
.toast-icon-success,
.toast-icon-error {
    margin-right: 12px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.toast-icon-success i {
    color: #28c76f !important;
}

.toast-icon-error i {
    color: #ea5455 !important;
}

/* Toast Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.colored-toast.swal2-show {
    animation: slideInRight 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.colored-toast.swal2-hide {
    animation: slideOutRight 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Toast Container */
.swal2-container.swal2-top-end {
    align-items: flex-start !important;
    padding-top: 16px !important;
    padding-right: 16px !important;
}

/* Toast Stack Effect */
.swal2-container.swal2-top-end > .swal2-popup:not(:first-child) {
    margin-top: 8px !important;
} 