/* ============================================
   Modern Login Page Styles - FPNO Portal
   ============================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif, -apple-system, BlinkMacSystemFont;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow-x: hidden;
}

/* ============================================
   Login Page Wrapper
   ============================================ */
.login-page-wrapper {
  min-height: 100vh;
  position: relative;
}

/* ============================================
   Left Panel - Branding Section
   ============================================ */
.login-left-panel {
  background: linear-gradient(135deg, #0a82b8 0%, #086491 50%, #064d6e 100%);
  position: relative;
  min-height: 100vh;
}

.login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.login-content-wrapper {
  position: relative;
  z-index: 2;
}

.login-brand-logo {
  animation: fadeInDown 1s ease-out;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.brand-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.brand-section p.lead {
  font-size: 1.25rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.login-features {
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.feature-item {
  opacity: 0.9;
  transition: all 0.3s ease;
}

.feature-item:hover {
  opacity: 1;
  transform: translateX(10px);
}

/* Decorative Circles */
.decorative-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.decorative-circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.decorative-circle-2 {
  width: 200px;
  height: 200px;
  bottom: 100px;
  left: -50px;
  animation-delay: 2s;
}

.decorative-circle-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 50px;
  animation-delay: 4s;
}

/* ============================================
   Right Panel - Login Form Section
   ============================================ */
.login-right-panel {
  background-color: #f8f9fa;
  padding: 2rem;
}

.login-form-container {
  animation: slideInRight 0.8s ease-out;
}

.login-header h2 {
  font-size: 2rem;
  font-weight: 700;
}

.login-card {
  border: none;
  transition: all 0.3s ease;
  background: white;
  border-radius: 20px !important;
}

.login-card:hover {
  box-shadow: 0 15px 40px rgba(10, 130, 184, 0.15) !important;
}

/* ============================================
   Form Styling
   ============================================ */
.login-form .form-label {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.login-form .form-group {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
}

.login-form .input-group {
  width: 100% !important;
  max-width: 100% !important;
}

/* Custom Input Wrapper */
.custom-input-wrapper {
  position: relative;
  width: 100%;
  display: block;
}

.custom-input-wrapper .input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  background-color: #f8f9fa;
  padding: 8px 12px;
  border-radius: 6px 0 0 6px;
  border: 1px solid #dee2e6;
  border-right: none;
}

.custom-input {
  width: 100% !important;
  padding-left: 60px !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 6px !important;
  background-color: white !important;
  transition: all 0.3s ease !important;
}

.custom-input:focus {
  border-color: #0a82b8 !important;
  box-shadow: 0 0 0 0.2rem rgba(10, 130, 184, 0.15) !important;
  outline: none !important;
}

.custom-input:focus + .input-icon {
  border-color: #0a82b8 !important;
  background-color: #e7f3f8 !important;
}

.input-group-text {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group {
  width: 100% !important;
  display: flex !important;
  max-width: 100% !important;
}

.input-group .form-control {
  flex: 1 !important;
  width: auto !important;
  min-width: 0 !important;
}

.input-group-lg {
  width: 100% !important;
  max-width: 100% !important;
}

/* Force full width for login form inputs */
.login-form .input-group {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
}

.login-form .input-group .form-control {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

.form-control {
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background-color: white;
}

.form-control:focus {
  border-color: #0a82b8;
  box-shadow: 0 0 0 0.2rem rgba(10, 130, 184, 0.15);
  background-color: white;
}

.input-group:focus-within .input-group-text {
  border-color: #0a82b8;
  background-color: #e7f3f8;
  color: #0a82b8;
}

/* Remember Me Checkbox */
.form-check-input {
  cursor: pointer;
  border-color: #0a82b8;
}

.form-check-input:checked {
  background-color: #0a82b8;
  border-color: #0a82b8;
}

.form-check-label {
  cursor: pointer;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  background: linear-gradient(135deg, #0a82b8 0%, #086491 100%);
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(10, 130, 184, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #086491 0%, #064d6e 100%);
  box-shadow: 0 6px 20px rgba(10, 130, 184, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(10, 130, 184, 0.3);
}

.login-btn {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* ============================================
   Links
   ============================================ */
a {
  color: #0a82b8;
  transition: all 0.3s ease;
}

a:hover {
  color: #086491;
  text-decoration: none;
}

/* Forgot Password Link */
a[href*="forgotpassword"] {
  font-weight: 600;
  transition: all 0.3s ease;
}

a[href*="forgotpassword"]:hover {
  color: #b94f3a !important;
  transform: translateX(3px);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-fade-in {
  animation: fadeInUp 1s ease-out;
}

.animate-slide-in {
  animation: slideInRight 0.8s ease-out;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991.98px) {
  .login-right-panel {
    background: white;
  }
  
  .brand-section h1 {
    font-size: 1.75rem;
  }
  
  .login-header h2 {
    font-size: 1.5rem;
  }
  
  .login-card {
    padding: 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .login-card {
    padding: 1.25rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1rem !important;
  }
}

/* ============================================
   Additional Utilities
   ============================================ */
.z-3 {
  z-index: 3;
}

.rounded-4 {
  border-radius: 1rem !important;
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Flash Messages Styling */
.message {
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.5s ease-out;
}

.message.success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.message.error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}
