/* ========================================
   AUTHENTICATION STYLES
   ======================================== */

body.login-page {
  background: url('/images/logo-tilelab.jpeg') no-repeat center center fixed, linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  background-size: cover;
  background-blend-mode: overlay;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', 'Roboto', sans-serif;
  position: relative;
  z-index: 1;
}

body.login-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: -1;
}

.brand-logo {
  max-width: 220px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  margin-bottom: 10px;
  transition: transform 0.3s;
}

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

.glass-card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
  border-radius: 16px !important;
}

.btn-login {
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3498db, #2c3e50) !important;
  border: none !important;
  color: white;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: linear-gradient(135deg, #2980b9, #1a252f) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.5);
}

.login-box {
  width: 100%;
  max-width: 400px;
  margin: 20px;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
  color: white;
}

.login-logo a {
  color: white;
  text-decoration: none;
  font-size: 28px;
  font-weight: 700;
  transition: transform 0.3s;
}

.login-logo a:hover {
  transform: scale(1.05);
}

.login-logo i {
  margin-right: 8px;
}

.card {
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 20px;
}

.card-outline {
  border-top: 3px solid transparent;
  border: none;
}

.card-outline.card-primary {
  border-top: 3px solid #007bff;
}

.card-outline.card-success {
  border-top: 3px solid #28a745;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1.5rem;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.card-body {
  padding: 2rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.form-control, input[type="email"], input[type="password"], input[type="text"] {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.75rem;
  font-size: 14px;
  transition: all 0.3s;
  background-color: #fff;
}

.form-control:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="text"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
  background-color: #fff;
}

.input-group-append {
  margin-left: -1px;
}

.input-group-text {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0 4px 4px 0;
  color: #6c757d;
}

.icheck-primary input[type="checkbox"] {
  cursor: pointer;
}

.icheck-primary label {
  cursor: pointer;
  font-size: 14px;
  margin-left: 0.5rem;
  color: #555;
}

.btn {
  padding: 0.75rem 1rem;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-block {
  width: 100%;
  display: block;
}

.row {
  display: flex;
  margin: -0.5rem;
}

.col-4, .col-6, .col-8 {
  padding: 0.5rem;
}

.col-4 {
  flex: 0 0 calc(33.333% - 1rem);
}

.col-6 {
  flex: 0 0 calc(50% - 1rem);
}

.col-8 {
  flex: 0 0 calc(66.666% - 1rem);
}

.col-md-6, .col-md-3 {
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 calc(50% - 1rem);
  }

  .col-md-3 {
    flex: 0 0 calc(25% - 1rem);
  }
}

hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #dee2e6;
}

.text-center {
  text-align: center;
}

.text-center p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.text-center a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.text-center a:hover {
  text-decoration: underline;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  animation: slideDown 0.3s ease-out;
}

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

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-dismissible {
  position: relative;
  padding-right: 2rem;
}

.alert-dismissible .close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.alert-dismissible .close:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
  .login-box {
    margin: 20px;
  }

  .card-body {
    padding: 1.5rem;
  }

  .col-4, .col-6, .col-8 {
    flex: 0 0 100%;
    margin-bottom: 1rem;
  }

  .row {
    flex-direction: column;
  }

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