 :root {
     --primary: #253d83;
     --light: #EFF5FF;
     --dark: #1B2C51;
     --red: #B61F25;
     --white: #ffffff;
     --gray-50: #f8fafc;
     --gray-100: #f1f5f9;
     --gray-200: #e2e8f0;
     --gray-300: #cbd5e1;
     --gray-400: #94a3b8;
     --gray-500: #64748b;
     --gray-600: #475569;
     --gray-700: #334155;
     --gray-800: #1e293b;
     --gray-900: #0f172a;
     --success: #22c55e;
     --warning: #f59e0b;
     --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
     --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
     --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
     --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
     --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
     --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 html {
     font-size: 16px;
     scroll-behavior: smooth;
 }

 body {
     font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
     background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 50%, #162447 100%);
     min-height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 1rem;
     position: relative;
     overflow-x: hidden;
     line-height: 1.5;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
 }

 /* Animated Background */
 .bg-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 0;
     pointer-events: none;
 }

 .bg-overlay::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background:
         radial-gradient(circle at 20% 30%, rgba(37, 61, 131, 0.4) 0%, transparent 50%),
         radial-gradient(circle at 80% 70%, rgba(27, 44, 81, 0.3) 0%, transparent 50%),
         radial-gradient(circle at 40% 80%, rgba(37, 61, 131, 0.2) 0%, transparent 50%);
     animation: backgroundMove 20s ease-in-out infinite;
 }

 @keyframes backgroundMove {

     0%,
     100% {
         transform: translate(0, 0) rotate(0deg);
     }

     25% {
         transform: translate(-20px, -20px) rotate(1deg);
     }

     50% {
         transform: translate(20px, -10px) rotate(-1deg);
     }

     75% {
         transform: translate(-10px, 20px) rotate(0.5deg);
     }
 }

 /* Floating Elements */
 .floating-elements {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     pointer-events: none;
     z-index: 1;
 }

 .floating-circle {
     position: absolute;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.05);
     animation: float 15s infinite linear;
 }

 .floating-circle:nth-child(1) {
     width: 80px;
     height: 80px;
     left: 10%;
     top: 20%;
     animation-delay: 0s;
     animation-duration: 20s;
 }

 .floating-circle:nth-child(2) {
     width: 120px;
     height: 120px;
     right: 10%;
     top: 60%;
     animation-delay: 5s;
     animation-duration: 25s;
 }

 .floating-circle:nth-child(3) {
     width: 60px;
     height: 60px;
     left: 70%;
     top: 10%;
     animation-delay: 10s;
     animation-duration: 18s;
 }

 @keyframes float {

     0%,
     100% {
         transform: translateY(0px) translateX(0px) rotate(0deg);
         opacity: 0.3;
     }

     25% {
         transform: translateY(-20px) translateX(10px) rotate(90deg);
         opacity: 0.7;
     }

     50% {
         transform: translateY(-40px) translateX(-10px) rotate(180deg);
         opacity: 0.5;
     }

     75% {
         transform: translateY(-20px) translateX(15px) rotate(270deg);
         opacity: 0.8;
     }
 }

 /* Main Container */
 .forgot-password-wrapper {
     position: relative;
     z-index: 10;
     width: 100%;
     max-width: 1200px;
     display: grid;
     grid-template-columns: 1fr 1fr;
     background: rgba(255, 255, 255, 0.95);
     backdrop-filter: blur(20px);
     border-radius: 24px;
     overflow: hidden;
     box-shadow: var(--shadow-2xl);
     border: 1px solid rgba(255, 255, 255, 0.2);
     animation: containerSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
     min-height: 500px;
 }

 @keyframes containerSlideUp {
     0% {
         opacity: 0;
         transform: translateY(60px) scale(0.95);
     }

     100% {
         opacity: 1;
         transform: translateY(0) scale(1);
     }
 }

 /* Left Panel - Branding */
 .brand-panel {
     background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-direction: column;
     padding: 3rem 2rem;
     position: relative;
     overflow: hidden;
     color: var(--white);
 }

 .brand-panel::before {
     content: '';
     position: absolute;
     top: -50%;
     left: -50%;
     width: 200%;
     height: 200%;
     background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255, 255, 255, 0.03) 90deg, transparent 180deg, rgba(255, 255, 255, 0.03) 270deg, transparent 360deg);
     animation: rotateBackground 30s linear infinite;
 }

 @keyframes rotateBackground {
     0% {
         transform: rotate(0deg);
     }

     100% {
         transform: rotate(360deg);
     }
 }

 .brand-content {
     position: relative;
     z-index: 2;
     text-align: center;
     animation: brandFadeIn 1.2s ease-out 0.3s both;
 }

 @keyframes brandFadeIn {
     0% {
         opacity: 0;
         transform: translateY(40px);
     }

     100% {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .brand-icon-container {
     width: 120px;
     height: 120px;
     margin: 0 auto 2rem;
     position: relative;
 }

 .brand-icon {
     width: 100%;
     height: 100%;
     background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     backdrop-filter: blur(10px);
     border: 2px solid rgba(255, 255, 255, 0.2);
     animation: iconFloat 6s ease-in-out infinite;
     position: relative;
     overflow: hidden;
 }

 .brand-icon::before {
     content: '';
     position: absolute;
     top: -50%;
     left: -50%;
     width: 200%;
     height: 200%;
     background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
     animation: iconShimmer 4s ease-in-out infinite;
 }

 @keyframes iconFloat {

     0%,
     100% {
         transform: translateY(0) rotate(0deg);
     }

     25% {
         transform: translateY(-10px) rotate(2deg);
     }

     50% {
         transform: translateY(-5px) rotate(0deg);
     }

     75% {
         transform: translateY(-10px) rotate(-2deg);
     }
 }

 @keyframes iconShimmer {

     0%,
     100% {
         transform: translateX(-100%) translateY(-100%);
     }

     50% {
         transform: translateX(100%) translateY(100%);
     }
 }

 .brand-icon i {
     font-size: 3rem;
     color: var(--white);
     position: relative;
     z-index: 1;
 }

 .brand-title {
     font-size: 2.5rem;
     font-weight: 800;
     margin-bottom: 1rem;
     background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.8));
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     line-height: 1.2;
 }

 .brand-subtitle {
     font-size: 1.125rem;
     line-height: 1.6;
     opacity: 0.9;
     max-width: 300px;
     margin: 0 auto 2rem;
     font-weight: 400;
 }

 .security-features {
     text-align: left;
     max-width: 320px;
 }

 .security-item {
     display: flex;
     align-items: center;
     margin-bottom: 1rem;
     opacity: 0.8;
     animation: featureSlideIn 0.6s ease-out both;
 }

 .security-item:nth-child(1) {
     animation-delay: 0.8s;
 }

 .security-item:nth-child(2) {
     animation-delay: 1s;
 }

 .security-item:nth-child(3) {
     animation-delay: 1.2s;
 }

 @keyframes featureSlideIn {
     0% {
         opacity: 0;
         transform: translateX(-20px);
     }

     100% {
         opacity: 0.8;
         transform: translateX(0);
     }
 }

 .security-item i {
     margin-right: 0.75rem;
     font-size: 1rem;
     color: var(--light);
 }

 .security-item span {
     font-size: 0.875rem;
     font-weight: 500;
 }

 /* Right Panel - Form */
 .form-panel {
     padding: 3rem 2.5rem;
     display: flex;
     flex-direction: column;
     justify-content: center;
     background: var(--white);
     position: relative;
 }

 .form-header {
     margin-bottom: 2rem;
     animation: formSlideIn 0.8s ease-out 0.4s both;
     text-align: center;
 }

 @keyframes formSlideIn {
     0% {
         opacity: 0;
         transform: translateX(30px);
     }

     100% {
         opacity: 1;
         transform: translateX(0);
     }
 }

 .form-logo {
     display: flex;
     align-items: center;
     justify-content: center;
     margin-bottom: 2rem;
 }

 .form-logo img {
     height: 2.5rem;
 }

 .form-title {
     font-size: 2rem;
     font-weight: 800;
     color: var(--gray-900);
     margin-bottom: 0.5rem;
     line-height: 1.25;
 }

 .form-subtitle {
     font-size: 1rem;
     color: var(--gray-600);
     font-weight: 500;
     margin-bottom: 1.5rem;
 }

 /* Status Message */
 .status-message {
     padding: 1rem 1.25rem;
     border-radius: 12px;
     margin-bottom: 1.5rem;
     font-size: 0.875rem;
     font-weight: 500;
     display: flex;
     align-items: center;
     animation: alertSlideDown 0.5s ease-out;
     background: linear-gradient(135deg, #ecfdf5, #d1fae5);
     color: #047857;
     border: 1px solid #a7f3d0;
 }

 @keyframes alertSlideDown {
     0% {
         opacity: 0;
         transform: translateY(-20px);
     }

     100% {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .status-message i {
     margin-right: 0.5rem;
     font-size: 1rem;
 }

 /* Form Elements */
 .form-section {
     animation: formSlideIn 0.8s ease-out 0.6s both;
 }

 .form-group {
     margin-bottom: 2rem;
 }

 .form-label {
     display: block;
     margin-bottom: 0.5rem;
     font-weight: 600;
     color: var(--gray-900);
     font-size: 0.875rem;
 }

 .form-input {
     width: 100%;
     padding: 1rem 1.25rem;
     border: 2px solid var(--gray-200);
     border-radius: 12px;
     font-size: 1rem;
     font-family: inherit;
     background: var(--white);
     color: var(--gray-900);
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     appearance: none;
 }

 .form-input:focus {
     outline: none;
     border-color: var(--primary);
     box-shadow: 0 0 0 4px rgba(37, 61, 131, 0.1);
     transform: translateY(-1px);
 }

 .form-input::placeholder {
     color: var(--gray-400);
 }

 .form-input.is-invalid {
     border-color: var(--red);
     animation: inputShake 0.5s ease-in-out;
 }

 .form-input.is-invalid:focus {
     box-shadow: 0 0 0 4px rgba(182, 31, 37, 0.1);
 }

 @keyframes inputShake {

     0%,
     20%,
     40%,
     60%,
     80%,
     100% {
         transform: translateX(0);
     }

     10%,
     30%,
     50%,
     70%,
     90% {
         transform: translateX(-4px);
     }
 }

 .invalid-feedback {
     display: flex;
     align-items: center;
     margin-top: 0.5rem;
     font-size: 0.875rem;
     color: var(--red);
     font-weight: 500;
     animation: errorSlideIn 0.3s ease-out;
 }

 @keyframes errorSlideIn {
     0% {
         opacity: 0;
         transform: translateY(-10px);
     }

     100% {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* Button Row */
 .button-row {
     display: flex;
     gap: 1rem;
     align-items: center;
     justify-content: center;
     margin-top: 1rem;
 }

 /* Submit Button */
 .submit-btn {
     flex: 1;
     background: linear-gradient(135deg, var(--primary), var(--dark));
     color: var(--white);
     border: none;
     border-radius: 12px;
     padding: 1rem 2rem;
     font-size: 1rem;
     font-weight: 700;
     font-family: inherit;
     cursor: pointer;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
     box-shadow: var(--shadow-lg);
 }

 .submit-btn::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
     transition: left 0.6s;
 }

 .submit-btn:hover {
     transform: translateY(-3px);
     box-shadow: var(--shadow-xl);
 }

 .submit-btn:hover::before {
     left: 100%;
 }

 .submit-btn:active {
     transform: translateY(-1px);
 }

 .submit-btn:disabled {
     opacity: 0.7;
     cursor: not-allowed;
     transform: none;
 }

 /* Cancel Button */
 .cancel-btn {
     flex: 1;
     background: var(--white);
     color: var(--primary);
     border: 2px solid var(--primary);
     border-radius: 12px;
     padding: 1rem 2rem;
     font-size: 1rem;
     font-weight: 700;
     font-family: inherit;
     cursor: pointer;
     text-decoration: none;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
 }

 .cancel-btn::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(37, 61, 131, 0.1), transparent);
     transition: left 0.6s;
 }

 .cancel-btn:hover {
     background: var(--primary);
     color: var(--white);
     transform: translateY(-2px);
     box-shadow: var(--shadow-lg);
 }

 .cancel-btn:hover::before {
     left: 100%;
 }

 .cancel-btn:active {
     transform: translateY(0);
 }

 /* Loading State */
 .spinner-border {
     display: inline-block;
     width: 1rem;
     height: 1rem;
     vertical-align: text-bottom;
     border: 0.125em solid currentColor;
     border-right-color: transparent;
     border-radius: 50%;
     animation: spinner-border 0.75s linear infinite;
     margin-left: 0.5rem;
 }

 @keyframes spinner-border {
     to {
         transform: rotate(360deg);
     }
 }

 /* Mobile Responsive */
 @media (max-width: 1024px) {
     .forgot-password-wrapper {
         max-width: 900px;
     }

     .brand-panel,
     .form-panel {
         padding: 2.5rem 2rem;
     }
 }

 @media (max-width: 768px) {
     html {
         font-size: 14px;
     }

     body {
         padding: 0.5rem;
     }

     .forgot-password-wrapper {
         grid-template-columns: 1fr;
         max-width: 500px;
         border-radius: 20px;
     }

     .brand-panel {
         padding: 2rem 1.5rem;
         min-height: auto;
         order: 1;
     }

     .form-panel {
         padding: 2rem 1.5rem;
         order: 2;
     }

     .brand-icon-container {
         width: 100px;
         height: 100px;
         margin-bottom: 1.5rem;
     }

     .brand-icon i {
         font-size: 2.5rem;
     }

     .brand-title {
         font-size: 1.75rem;
         margin-bottom: 0.75rem;
     }

     .brand-subtitle {
         font-size: 1rem;
         margin-bottom: 1.5rem;
     }

     .form-title {
         font-size: 1.5rem;
     }

     .form-subtitle {
         font-size: 0.875rem;
     }

     .button-row {
         flex-direction: column;
         gap: 0.75rem;
     }

     .submit-btn,
     .cancel-btn {
         width: 100%;
     }
 }

 @media (max-width: 480px) {
     .forgot-password-wrapper {
         margin: 0.5rem;
         border-radius: 16px;
         max-width: none;
     }

     .brand-panel,
     .form-panel {
         padding: 1.5rem 1rem;
     }

     .brand-icon-container {
         width: 80px;
         height: 80px;
         margin-bottom: 1rem;
     }

     .brand-icon i {
         font-size: 2rem;
     }

     .brand-title {
         font-size: 1.5rem;
     }

     .brand-subtitle {
         font-size: 0.875rem;
     }

     .form-title {
         font-size: 1.25rem;
     }

     .form-subtitle {
         font-size: 0.8rem;
     }

     .form-input {
         padding: 0.875rem 1rem;
     }

     .submit-btn,
     .cancel-btn {
         padding: 0.875rem 1.5rem;
         font-size: 0.875rem;
     }

     .security-item {
         margin-bottom: 0.75rem;
     }

     .security-item span {
         font-size: 0.8rem;
     }
 }

 @media (max-width: 360px) {
     .forgot-password-wrapper {
         margin: 0.25rem;
         border-radius: 12px;
     }

     .brand-panel,
     .form-panel {
         padding: 1rem 0.75rem;
     }

     .form-input {
         padding: 0.75rem 0.875rem;
         font-size: 0.875rem;
     }

     .submit-btn,
     .cancel-btn {
         padding: 0.75rem 1.25rem;
         font-size: 0.8rem;
     }
 }

 /* Additional Mobile Optimizations */
 @media (max-width: 768px) {
     .floating-elements {
         display: none;
     }

     .bg-overlay::before {
         animation: none;
     }

     .form-input,
     .submit-btn,
     .cancel-btn {
         min-height: 44px;
     }
 }

 /* Accessibility improvements */
 @media (prefers-reduced-motion: reduce) {

     *,
     *::before,
     *::after {
         animation-duration: 0.01ms !important;
         animation-iteration-count: 1 !important;
         transition-duration: 0.01ms !important;
     }
 }