

/* Background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(96,149,190,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(148,163,184,0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(46,195,150,0.03) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* Reset and base styles */
h1,h2,h3,h4,h5,p,ul {
    padding: 0;
    margin: 0;
    font-weight: 400;
}

/* Login page container */
.content-container {
    max-width: 440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Messages container */
.messages-container {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border-left: 5px solid;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background-color: #fee;
    color: #d32f2f;
    border-left-color: #c62828;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.15);
}

.alert-success {
    background-color: #e8f5e9;
    color: #1b5e20;
    border-left-color: #2e7d32;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
}

.alert-warning {
    background-color: #fff3e0;
    color: #e65100;
    border-left-color: #f57c00;
    box-shadow: 0 2px 8px rgba(245, 124, 0, 0.15);
}

.alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left-color: #1976d2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
}

/* Hide header messages on login/register pages */
.message-container,
header .message-container {
    display: none !important;
}

.messages-container {
    position: relative;
}

/* Login form card */
.login-form {
    width: 100%;
    padding: 40px 36px;
    background: linear-gradient(180deg, rgba(12,20,26,0.6), rgba(12,20,26,0.5));
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(2,6,23,0.3);
}

/* Title */
.login-form h1 {
    font-weight: 800;
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text);
    letter-spacing: -0.5px;
}

.login-form p.subtitle {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 28px;
}

/* Form elements */
.login-form form {
    width: 100%;
    margin-top: 0;
}

.login-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-group {
    margin-top: 20px;
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input fields */
.login-form input, .login-form select {
    height: 50px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    outline: none;
    padding: 0 16px;
    font-size: 14px;
    background: linear-gradient(180deg, rgba(20,28,36,0.8), rgba(15,23,31,0.8));
    color: var(--text);
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
    box-sizing: border-box;
}

.login-form .login-form input::placeholder {
    color: var(--muted);
    font-weight: 400;
}

.login-form input:hover, .login-form select:hover {
    border-color: rgba(148,163,184,0.3);
    background: linear-gradient(180deg, rgba(25,33,41,0.8), rgba(20,28,36,0.8));
}

.login-form input:focus, .login-form select:focus {
    border-color: rgba(96,149,190,0.5);
    background: linear-gradient(180deg, rgba(25,33,41,0.9), rgba(20,28,36,0.9));
    box-shadow: 0 0 0 3px rgba(96,149,190,0.1);
}

.login-form .login-form select {
    cursor: pointer;
}

.login-form select option {
    background-color: rgba(15,23,31,1);
    color: var(--text);
}

/* Submit button */
.login-form button[type="submit"] {
    height: 52px;
    width: 100%;
    background: linear-gradient(135deg, rgba(148,163,184,0.2), rgba(148,163,184,0.15));
    color: rgba(226,232,240,0.95);
    border: 1px solid rgba(148,163,184,0.3);
    outline: none;
    border-radius: 8px;
    margin: 24px 0 0 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-form .login-form button[type="submit"]:hover {
    background: linear-gradient(135deg, rgba(148,163,184,0.3), rgba(148,163,184,0.2));
    border-color: rgba(148,163,184,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(148,163,184,0.15);
}

.login-form .login-form button[type="submit"]:active {
    transform: translateY(0);
}

.login-form .login-form button[type="button"] {
    height: 52px;
    width: 100%;
    background: linear-gradient(135deg, rgba(96,149,190,0.15), rgba(96,149,190,0.1));
    border: 1px solid rgba(96,149,190,0.25);
    color: rgba(96,149,190,0.95);
    border-radius: 8px;
    margin: 12px 0 0 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.login-form .login-form button[type="button"]:hover {
    background: linear-gradient(135deg, rgba(96,149,190,0.25), rgba(96,149,190,0.15));
    border-color: rgba(96,149,190,0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(96,149,190,0.15);
}

.login-form .login-form button[type="button"]:active {
    transform: translateY(0);
}

.register-link {
    font-size: 14px;
    text-align: center;
    color: var(--muted);
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.register-link a {
    color: rgba(96,149,190,0.9);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: rgba(96,149,190,1);
}

.alert-error {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 0 0 18px 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(239, 68, 68, 0.12) 100%);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-weight: 500;
    font-size: 14px;
}

.message-container {
    margin-bottom: 18px;
}

.login-form {
    animation: fadeIn 0.4s ease-out;
}

/* Back button link styled as button */
.login-form .back-button {
    height: 52px;
    width: 100%;
    background: linear-gradient(135deg, rgba(148,163,184,0.2), rgba(148,163,184,0.15));
    color: rgba(226,232,240,0.95);
    border: 1px solid rgba(148,163,184,0.3);
    border-radius: 8px;
    margin: 24px 0 0 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form .back-button:hover {
    background: linear-gradient(135deg, rgba(148,163,184,0.3), rgba(148,163,184,0.2));
    border-color: rgba(148,163,184,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(148,163,184,0.15);
}

.login-form .back-button:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .content-container {
    padding: 20px 16px;
}

    .login-form {
    padding: 36px 28px;
}

    .login-form h1 {
        font-size: 28px;
    }

    input, select, button[type="submit"] {
        font-size: 14px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader4 {
  width: 80px;
  height: 80px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 101;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loader4.active {
  display: block;
  opacity: 1;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loader-overlay.active {
  display: block;
  opacity: 1;
}

.loader4 div {
  transform-origin: 40px 40px;
  animation: loader4-animation 1.2s linear infinite;
}

.loader4 div:after {
  content: " ";
  position: absolute;
  top: 3px;
  left: 37px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background-color: #226491;
}

.loader4 div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}

.loader4 div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}

.loader4 div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}

.loader4 div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}

.loader4 div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}

.loader4 div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}

.loader4 div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}

.loader4 div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}

.loader4 div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}

.loader4 div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}

.loader4 div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}

.loader4 div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}

.login-form button[type="submit"]:disabled {
    background: linear-gradient(135deg, rgba(96,149,190,0.3), rgba(96,149,190,0.2));
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    text-shadow: none;
    box-shadow: none;
}

.login-form button[type="submit"]:disabled:hover {
    transform: none;
    box-shadow: none;
}

.login-form button[type="submit"]:not(:disabled) {
    background: linear-gradient(135deg, rgba(46, 195, 150, 0.5), rgba(46, 195, 150, 0.4));
    color: rgba(255, 255, 255, 1);
    border-color: rgba(46, 195, 150, 0.6);
}

.login-form button[type="submit"]:not(:disabled):hover {
    background: linear-gradient(135deg, rgba(46, 195, 150, 0.7), rgba(46, 195, 150, 0.6));
    border-color: rgba(46, 195, 150, 0.8);
    box-shadow: 0 12px 32px rgba(46, 195, 150, 0.25);
}

.login-form.loading {
    opacity: 0.5;
    pointer-events: none;
}

.login-text{
    margin-top: 0px;
}

@keyframes loader4-animation {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}