﻿:root {
    --primary-color: #800000;
    --primary-hover: #a70000;
    --primary-light: #ff0033;
    --dark-text: #2d3748;
    --light-text: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-dark {
    color: var(--dark-text) !important;
}

/* ============================================
   ADVANCED ANIMATIONS & KEYFRAMES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }

    50% {
        filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes floatingShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes shakeError {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes checkboxPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes buttonPress {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.slide-up {
    animation: slideUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.slide-up-delay {
    animation: slideUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

.shake-error {
    animation: shakeError 0.5s ease-in-out;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
}

.main-content-box {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   LEFT SIDE - ANIMATED BACKGROUND
   ============================================ */

.image-content-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* Animated floating shapes */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation: floatingShape 20s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 70%;
    animation: floatingShape 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 20%;
    animation: floatingShape 18s ease-in-out infinite;
    animation-delay: 2s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 80%;
    animation: floatingShape 22s ease-in-out infinite reverse;
    animation-delay: 4s;
}

.overlay-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

.logo-wrapper {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

    .logo-wrapper:hover {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }

.logo-img {
    max-width: 200px;
}

/* ============================================
   RIGHT SIDE - FORM CONTENT
   ============================================ */

.form-content-box {
    padding: 60px 50px;
    background: #ffffff;
}

    .form-content-box .form-container {
        max-width: 420px;
        margin: 0 auto;
    }

/* ============================================
   FORM ELEMENTS WITH ANIMATIONS
   ============================================ */

.form-label {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.input-group-text {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-right: 0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.input-animated:focus-within .input-group-text {
    border-color: var(--primary-color);
    background: rgba(128, 0, 0, 0.02);
}

.icon-bounce {
    animation: iconBounce 2s ease-in-out infinite;
}

.input-animated:focus-within .icon-bounce {
    animation: none;
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

.form-control {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    color: black;
    background-color: #ffffff;
    position: relative;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
        background-color: #ffffff;
        transform: translateY(-2px);
    }

    .form-control::placeholder {
        color: #a0aec0;
        font-weight: normal;
        transition: all 0.3s ease;
    }

    .form-control:focus::placeholder {
        transform: translateX(5px);
        opacity: 0.7;
    }

.input-group .form-control {
    border-left: 1px solid var(--border-color);
}

/* ============================================
   ANIMATED CHECKBOX
   ============================================ */

.checkbox-animated {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

    .checkbox-animated:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        animation: checkboxPop 0.3s ease;
    }

    .checkbox-animated:focus {
        box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
    }

    .checkbox-animated:hover {
        transform: scale(1.1);
        border-color: var(--primary-color);
    }

.form-check-label {
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-check:hover .form-check-label {
    color: var(--dark-text) !important;
}

/* ============================================
   ANIMATED BUTTONS
   ============================================ */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 14px 24px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-primary:hover::before {
        width: 300px;
        height: 300px;
    }

    .btn-primary:hover {
        background-color: var(--primary-hover);
        border-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(128, 0, 0, 0.3);
    }

    .btn-primary:active {
        animation: buttonPress 0.2s ease;
        transform: translateY(0);
    }

    .btn-primary .btn-text,
    .btn-primary .btn-spinner {
        position: relative;
        z-index: 1;
    }

/* Language buttons */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-width: 2px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

    .btn-outline-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--primary-color);
        transition: left 0.4s ease;
        z-index: 0;
    }

    .btn-outline-primary:hover::before,
    .btn-check:checked + .btn-outline-primary::before {
        left: 0;
    }

.btn-check:checked + .btn-outline-primary{
    color:white !important;
    position:relative !important;
    z-index:1 !important;
}

.btn-outline-primary i,
.btn-outline-primary {
    position: relative;
    z-index: 1;
}

        .btn-outline-primary:hover {
            color: #ffffff;
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
        }

.btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.05);
}

.lang-btn {
    transition: all 0.3s ease;
    color:white !important;
}

    .lang-btn:hover i {
        animation: float 1s ease-in-out infinite;
    }

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

.language-switcher {
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

    .language-switcher .btn {
        min-width: 90px;
    }

/* ============================================
   LINKS
   ============================================ */

.forgot-link {
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

    .forgot-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -2px;
        left: 0;
        background-color: var(--primary-hover);
        transition: width 0.3s ease;
    }

    .forgot-link:hover::after {
        width: 100%;
    }

    .forgot-link:hover {
        color: var(--primary-hover) !important;
        transform: translateX(3px);
    }

/* ============================================
   ALERT WITH ANIMATION
   ============================================ */

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 10px;
    color: #dc3545;
    padding: 12px 16px;
}

    .alert-danger i {
        font-size: 18px;
        animation: pulseGlow 1.5s ease-in-out infinite;
    }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .main-content-box {
        border-radius: 16px;
    }

    .form-content-box {
        padding: 40px 30px;
        border-radius: 16px;
    }

    .main-container {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .form-content-box {
        padding: 30px 20px;
    }

        .form-content-box .form-container {
            padding: 0;
        }

    .btn-primary {
        padding: 12px 20px;
    }

    .language-switcher .btn {
        min-width: 70px;
        font-size: 14px;
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h2 {
    font-size: 28px;
    line-height: 1.3;
}

h3 {
    font-size: 24px;
}

.f-s-16 {
    font-size: 16px;
}

.fw-light {
    font-weight: 300;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: none;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


.form-content-box .form-container .form-check-input, .form-content-box .form-container .form-control{
    color:black !important;
}

.form-content-box .form-container .form-check-input, .form-content-box .form-container .form-control{
    color:black !important;
}

/* ============================================
   LANGUAGE BUTTONS - SIMPLIFIED & FIXED
   ============================================ */

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-width: 2px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

    /* Background slide animation */
    .btn-outline-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--primary-color);
        transition: left 0.4s ease;
        z-index: 0;
    }

    .btn-outline-primary:hover::before {
        left: 0;
    }

.btn-check:checked + .btn-outline-primary::before {
    left: 0;
}

/* Default hover */
.btn-outline-primary:hover {
    color: #ffffff !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}

/* Checked state */
.btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
    transform: scale(1.05);
}

/* Text wrapper - ensures text stays above background */
.lang-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Make sure icon and text are white on hover and checked */
.btn-outline-primary:hover .lang-btn,
.btn-outline-primary:hover .lang-btn i,
.btn-check:checked + .btn-outline-primary .lang-btn,
.btn-check:checked + .btn-outline-primary .lang-btn i {
    color: #ffffff !important;
}

    /* Icon float animation on hover */
    .btn-outline-primary:hover .lang-btn i {
        animation: float 1s ease-in-out infinite;
    }

/* Language switcher container */
.language-switcher {
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

    .language-switcher .btn {
        min-width: 90px;
    }


.lang-btn{
    color:black !important;

}

.btn-outline-primary:hover .lang-btn{
    color:black !important;
}