* {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Unified Container */
.auth-container {
  width: 100%;
  max-width: 700px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

/* Logo Area - Improved Styling */
.auth-logo {
  padding: 2rem 2rem 1rem;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}

.auth-logo img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.auth-logo img:hover {
  transform: scale(1.05);
}

.auth-logo a {
  display: inline-block;
}

/* Form Section */
.auth-form-container {
  flex: 1;
  padding: 2rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
}

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

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  display: block;
}

.input-group {
  position: relative;
}

.form-control {
  padding: 1rem 3rem 1rem 1.2rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.form-control:focus {
  border-color: #ef6820;
  box-shadow: 0 0 0 3px rgba(239, 104, 32, 0.1);
  outline: none;
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  cursor: pointer;
  z-index: 10;
  background: white;
  padding: 0.5rem;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.input-icon:hover {
  color: #ef6820;
  background: #fef0e6;
}

/* Password Strength Meter */
.password-strength {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
  position: relative;
}

.password-strength-meter {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width 0.3s ease, background 0.3s ease;
  background: #ef6820;
}

.password-strength-text {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.password-criteria {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.password-criteria li {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
}

.password-criteria li i {
  margin-right: 0.5rem;
  font-size: 0.7rem;
}

.password-criteria li.valid {
  color: #10b981;
}

.password-criteria li.invalid {
  color: #6b7280;
}

.password-match-text {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
}

.password-match-text i {
  margin-right: 0.5rem;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.form-check-input {
  margin-right: 0.5rem;
  width: 1.1rem;
  height: 1.1rem;
}

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

.form-check-label {
  color: #6b7280;
  font-size: 0.95rem;
}

.form-check-label a {
  color: #ef6820;
  text-decoration: none;
  font-weight: 500;
}

.form-check-label a:hover {
  text-decoration: underline;
}

.btn-auth {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #ef6820 0%, #f7931e 100%);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(239, 104, 32, 0.3);
}

.btn-auth:hover {
  background: linear-gradient(135deg, #d45a1c 0%, #dc831a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 104, 32, 0.4);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.divider::before {
  margin-right: 0.5rem;
}

.divider::after {
  margin-left: 0.5rem;
}

.social-auth {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-social {
  flex: 1;
  padding: 0.8rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-social:hover {
  border-color: #ef6820;
  background: #fef0e6;
  transform: translateY(-2px);
}

.btn-google {
  color: #db4437;
}

.btn-facebook {
  color: #4267b2;
}

.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.auth-link a {
  color: #ef6820;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-link a:hover {
  color: #d45a1c;
}

.security-notice {
  background: #fef0e6;
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  border-left: 4px solid #ef6820;
}

.security-icon {
  font-size: 1.5rem;
  color: #ef6820;
  margin-right: 1rem;
}

.security-text {
  font-size: 0.85rem;
  color: #6b7280;
}

.security-text strong {
  color: #374151;
}

/* Responsive Design */
@media (max-width: 992px) {
  .auth-container {
    flex-direction: column;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .auth-form-container {
    padding: 2rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .social-auth {
    flex-direction: column;
  }

  .auth-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .auth-form-container {
    padding: 1.5rem;
  }

  .auth-title {
    font-size: 1.6rem;
  }

  .input-icon {
    right: 10px;
    width: 34px;
    height: 34px;
  }

  .form-control {
    padding: 1rem 2.8rem 1rem 1rem;
  }

  .auth-logo {
    padding: 1.5rem 1.5rem 0.5rem;
  }

  .auth-logo img {
    height: 50px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: float 5s ease-in-out infinite;
}

.auth-container {
  animation: fadeIn 0.6s ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.btn-auth:hover {
  animation: pulse 0.5s ease-in-out;
}

/* Login specific styles */
.login-illustration {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-illustration i {
  font-size: 4rem;
  color: #ef6820;
  margin-bottom: 1rem;
}

/* Links & Misc */

.forgot-password {
  color: #ef6820;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.forgot-password:hover {
  text-decoration: underline;
  color: #d45a1c;
}

.success-icon {
  font-size: 4.5rem;
  color: #10b981;
  margin-bottom: 1.5rem;
  animation: scaleIn 0.5s ease-out;
}

.auth-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.auth-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.email-highlight {
  color: #ef6820;
  font-weight: 600;
  background: #fef0e6;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  display: inline-block;
  margin: 0.5rem 0;
}

.info-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
  border-left: 4px solid #3b82f6;
}

.info-box h4 {
  color: #1e293b;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.info-box h4 i {
  margin-right: 0.5rem;
  color: #3b82f6;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
}

.info-list li i {
  color: #10b981;
  margin-right: 0.5rem;
  margin-top: 0.2rem;
  font-size: 0.7rem;
}

.btn-resend {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #ef6820 0%, #f7931e 100%);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin: 1rem 0 2rem;
  box-shadow: 0 5px 15px rgba(239, 104, 32, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-resend:hover {
  background: linear-gradient(135deg, #d45a1c 0%, #dc831a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 104, 32, 0.4);
}

.btn-resend i {
  margin-right: 0.5rem;
}

.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.auth-link a {
  color: #ef6820;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-link a:hover {
  color: #d45a1c;
}

/* Countdown timer */
.countdown {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.countdown span {
  color: #ef6820;
  font-weight: 600;
}

/* Forgot Password specific styles */
.forgot-password-illustration {
  text-align: center;
  margin-bottom: 1.5rem;
}

.forgot-password-illustration i {
  font-size: 4rem;
  color: #ef6820;
  margin-bottom: 1rem;
}

.instructions {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #3b82f6;
}

.instructions h4 {
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.instructions p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Content Section */
.auth-content {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: white;
}

.success-icon {
  font-size: 4.5rem;
  color: #10b981;
  margin-bottom: 1.5rem;
  animation: scaleIn 0.5s ease-out;
}

.auth-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.auth-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.email-highlight {
  color: #ef6820;
  font-weight: 600;
  background: #fef0e6;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  display: inline-block;
  margin: 0.5rem 0;
}

.info-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
  border-left: 4px solid #3b82f6;
}

.info-box h4 {
  color: #1e293b;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.info-box h4 i {
  margin-right: 0.5rem;
  color: #3b82f6;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
}

.info-list li i {
  color: #10b981;
  margin-right: 0.5rem;
  margin-top: 0.2rem;
  font-size: 0.7rem;
}

.btn-resend {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #ef6820 0%, #f7931e 100%);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin: 1rem 0 2rem;
  box-shadow: 0 5px 15px rgba(239, 104, 32, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-resend:hover {
  background: linear-gradient(135deg, #d45a1c 0%, #dc831a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 104, 32, 0.4);
}

.btn-resend i {
  margin-right: 0.5rem;
}

.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.auth-link a {
  color: #ef6820;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-link a:hover {
  color: #d45a1c;
}

/* Countdown timer */
.countdown {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.countdown span {
  color: #ef6820;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-content {
    padding: 2rem;
  }

  .auth-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .auth-content {
    padding: 1.5rem;
  }

  .auth-title {
    font-size: 1.6rem;
  }

  .auth-logo {
    padding: 1.5rem 1.5rem 0.5rem;
  }

  .auth-logo img {
    height: 50px;
  }

  .success-icon {
    font-size: 3.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  80% {
    transform: scale(1.1);
  }

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

.auth-container {
  animation: fadeIn 0.6s ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.btn-resend:hover {
  animation: pulse 0.5s ease-in-out;
}

/* Content Section */
.success-content {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: white;
}

.success-icon {
  font-size: 5rem;
  color: #10b981;
  margin-bottom: 2rem;
  animation: scaleIn 0.8s ease-out;
}

.success-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.success-message {
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.btn-login {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #ef6820 0%, #f7931e 100%);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin: 1rem 0;
  box-shadow: 0 5px 15px rgba(239, 104, 32, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-login:hover {
  background: linear-gradient(135deg, #d45a1c 0%, #dc831a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 104, 32, 0.4);
  color: white;
}

.btn-login i {
  margin-right: 0.5rem;
}

.security-notice {
  background: #f0fdf4;
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  border-left: 4px solid #10b981;
  text-align: left;
}

.security-icon {
  font-size: 1.5rem;
  color: #10b981;
  margin-right: 1rem;
}

.security-text {
  font-size: 0.85rem;
  color: #6b7280;
}

.security-text strong {
  color: #374151;
}

.countdown {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 1.5rem;
}

.countdown span {
  color: #ef6820;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .success-content {
    padding: 2rem;
  }

  .success-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .success-content {
    padding: 1.5rem;
  }

  .success-title {
    font-size: 1.6rem;
  }

  .auth-logo {
    padding: 1.5rem 1.5rem 0.5rem;
  }

  .auth-logo img {
    height: 50px;
  }

  .success-icon {
    font-size: 4rem;
  }

  .btn-login {
    width: 100%;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.success-container {
  animation: fadeIn 0.6s ease-out;
}

.btn-login:hover {
  animation: pulse 0.5s ease-in-out;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #ef6820;
  opacity: 0.7;
  border-radius: 0;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}
