﻿html, body {
  height: auto;
  margin: 0;
  font-family: "Roboto", sans-serif;
  /*background: linear-gradient(to bottom, #f9f9f9 0%, #eaeaea 50%, #dcdcdc 100%);
  background: linear-gradient(to bottom, #f5f5f5 0%, #f0f0f0 50%, #ebebeb 100%);*/
  background: linear-gradient(to bottom, #f4f4f4 0%, #eaeaea 50%, #dddddd 100%);
}

/* Wrapper centers the card */
.login-wrapper 
{
  height: auto; 
  min-height: 100vh;
  display: -ms-flexbox; /* IE10/11 */
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  box-sizing: border-box;
  padding: 100px 20px 30px; /* top padding for badge */
}

/* Tablet screens */
@media (max-width: 768px) {
  .login-wrapper {
    padding: 80px 15px 20px;
  }
}

/* Extra small screens (phones) */
@media (max-width: 576px) {
  .login-wrapper {
    padding: 60px 10px 15px;
  }
}

/* Card */
.login-card {
  max-width: 430px;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  padding: 90px 30px 30px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease-out; /* fade-in animation */
}

.login-card:hover {
  transform: translateY(-8px) scale(1.02); /* lift + slight zoom */
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* Logo badge */
.logo-badge {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  height: 120px;
  width: 120px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 5px solid #f4f4f4;
  animation: fadeInUp 0.6s ease-out; /* badge fades in too */
}

.logo-badge img {
  height: 100%;
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Fade-in keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auth header */
.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h3 {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  color: #051441;
  margin-bottom: 10px;
  font-size:30px;
}

/* Normal link style */
.auth-header p a.normal-link {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #051441;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
}

.auth-header p a.normal-link:hover,
.auth-header p a.normal-link:focus {
  color: #007bff; /* soft blue highlight */
  border-bottom: 2px solid #007bff;
  outline: none;
}

/* Gradient link style */
.auth-header p a.gradient-link {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #051441;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.auth-header p a.gradient-link:hover,
.auth-header p a.gradient-link:focus {
  color: #000;
  background: linear-gradient(135deg, #fbc2eb, #a6c1ee); /* pastel pink → lavender */
  box-shadow: 0 3px 8px rgba(166, 193, 238, 0.4);
  outline: none;
}

/* Input groups with icons */
.input-group {
  display: flex;
  align-items: center;
  /*margin-bottom: 15px;*/
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.input-group .input-group-text {
  background: #fff;
  border: none;
  color: #666; 
  padding: 0 15px;
  font-size: 16px;
  transition: color 0.3s ease;
}

/* Hover (works everywhere) */
.input-group:hover {
  border-color: #ff2143;
  box-shadow: 0 0 6px rgba(255, 33, 67, 0.5);
}

.input-group:hover .input-group-text {
  color: #ff2143;
}

/* IE11-safe focus: target input directly */
.input-group .form-control:focus {
  border-color: #ff2143;
  /*box-shadow: 0 0 6px rgba(255, 33, 67, 0.5);*/
}

.input-group .form-control:focus + .input-group-text {
  color: #ff2143; 
}

.input-group .form-control:focus + .input-group-text:focus {
  color: #ff2143; 
  border:0;
}

.form-control {
  border: none;
  flex: 1;
  font-size: 14px;
  height: 45px;
  /*padding: 0 10px;*/
  box-shadow: none;       /* remove default blue glow */
}

.form-control:focus {
  outline: none;
  box-shadow: none;       /* remove browser default */
}

/* Base placeholder style */
.form-control::placeholder,
.form-control::-webkit-input-placeholder,
.form-control::-moz-placeholder,
.form-control:-ms-input-placeholder {
  color: #999;
  opacity: 1;
  transition: opacity 0.3s ease, color 0.3s ease;
}

/* On focus, keep placeholder visible until typing */
.form-control:focus:placeholder-shown::placeholder {
  color: #999;   /* same color so it stays consistent */
  opacity: 0.7;  /* slightly fade to indicate focus */
}

/* When typing, placeholder disappears smoothly */
.form-control:not(:placeholder-shown)::placeholder {
  opacity: 0;    /* fade out instead of instant hide */
}

.input-group.focused {
  border-color: #ff2143;
  box-shadow: 0 0 6px rgba(255,33,67,0.5);
}
.input-group.focused .input-group-text {
  color: #ff2143;
}
.input-group:focus-within {
  border-color: #ff2143;
  box-shadow: 0 0 6px rgba(255,33,67,0.5);
}

.input-group:focus-within .input-group-text {
  color: #ff2143;
}

/* Button */
.login-btn {
  width: 100%;
  padding: 15px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: #ff2143;
  color: #fff;
  border: none;
  cursor: pointer;
}

.login-btn::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: #ca292e;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  /*transition: transform 0.5s ease;*/
}

.login-btn:hover::before {
  transform: scaleX(1);
}

.login-btn i {
  margin-right: 5px;
  font-size: 15px;
  display: inline-block;
  line-height: 1;
}

/* Footer links */
.links {
  font-size: 14px;
  text-align: center;
  margin-top: 15px;
}

.links a {
  color: #ff2143;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .login-card {
    padding: 70px 20px 20px;
  }
  .logo-badge {
    height: 100px;
    width: 100px;
    top: -50px;
  }
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .login-card {
    padding: 60px 15px 15px;
  }
  .logo-badge {
    height: 80px;
    width: 80px;
    top: -40px;
  }
  .auth-header h3 {
    font-size: 16px;
  }
  .auth-header p {
    font-size: 13px;
  }
  .form-control {
    height: 40px;
    font-size: 13px;
  }
  .login-btn {
    padding: 15px;
    font-size: 14px;
  }
}

/* Custom alert styling */
.alert-success {
  background-color: #e6ffed;
  color: #28a745;
  border: 1px solid #28a745;
}

.alert-danger {
  background-color: #ffe6e9;
  color: #ff2143;
  border: 1px solid #ff2143;
}

.alert-warning {
  background-color: #fff8e6;   /* soft pastel yellow */
  color: #d39e00;              /* Bootstrap amber tone */
  border: 1px solid #d39e00;
}

/* Success alert link */
.alert-success .alert-link {
  color: #28a745;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease, box-shadow 0.3s ease;
  padding: 2px 4px;
  border-radius: 3px;
}
.alert-success .alert-link:hover,
.alert-success .alert-link:focus {
  color: #1e7e34;
  box-shadow: 0 0 6px rgba(40, 167, 69, 0.4); /* soft green glow */
  outline: none; /* remove default browser outline */
}

/* Danger alert link */
.alert-danger .alert-link {
  color: #ff2143;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease, box-shadow 0.3s ease;
  padding: 2px 4px;
  border-radius: 3px;
}
.alert-danger .alert-link:hover,
.alert-danger .alert-link:focus {
  color: #cc1a36;
  box-shadow: 0 0 6px rgba(255, 33, 67, 0.4); /* soft red glow */
  outline: none;
}

/* Warning alert link */
.alert-warning .alert-link {
  color: #d39e00;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease, box-shadow 0.3s ease;
  padding: 2px 4px;
  border-radius: 3px;
}
.alert-warning .alert-link:hover,
.alert-warning .alert-link:focus {
  color: #a67800;
  box-shadow: 0 0 6px rgba(211, 158, 0, 0.4); /* soft amber glow */
  outline: none;
}

/* Close button styling for alerts (IE11 compatible) */
.alert .close {
  position: absolute;
  top: 50%;  
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #666;
  opacity: 0.6;
  background: none;
  border: none;
  cursor: pointer;
}

.alert .close:hover {
  color: #ff2143;   /* brand red on hover */
  opacity: 1;
}

/* Shake animation for invalid input */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
.input-error {
  animation: shake 0.4s;
  border-color: #ff2143 !important;
  box-shadow: 0 0 6px rgba(255,33,67,0.5);
}

/* Ripple effect for button clicks */
.login-btn:active::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 0.6s linear;
}
@keyframes ripple {
  to {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}


