/* Modern Login Page - YKS Style Design */
/* !boşcampüs Campus Forum Login */

/* Body ve main override - login sayfaları için */
body.login-page {
  padding-top: 0 !important;
}

body.login-page main {
  padding: 0 !important;
}

/* Navbar yükseklik kontrolü - mobil için */
@media (max-width: 768px) {
  body.login-page {
    padding-top: 0 !important;
  }

  /* Navbar fixed-top'un mobilde daha yüksek olabileceğini hesaba kat */
  .login-wrapper {
    margin-top: 0;
    padding-top: 140px !important; /* Mobilde daha fazla boşluk */
  }
}

.login-wrapper {
  min-height: calc(100vh - 80px);
  position: relative;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 20px 20px;
  overflow: hidden;
  margin-top: 0;
  padding-top: 120px; /* Navbar için yeterli boşluk */
}

/* Background Shapes - YKS Style */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.bg-shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.bg-shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #764ba2, #667eea);
  top: 20%;
  right: -100px;
  animation-delay: 2s;
}

.bg-shape-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  bottom: -75px;
  left: 30%;
  animation-delay: 4s;
}

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

/* Main Container */
.login-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
}

/* Login Card */
.login-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.8s ease-out;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Header Section */
.login-header {
  text-align: center;
  margin-bottom: 25px;
}

.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.logo-icon {
  font-size: 2.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.logo-section h1 {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.login-header h2 {
  color: #333;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.login-header p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

/* Messages */
.message-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 15px;
  margin-bottom: 25px;
  animation: slideInDown 0.5s ease-out;
}

.message-error {
  background: rgba(231, 76, 60, 0.1);
  border: 2px solid rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.message-success {
  background: rgba(39, 174, 96, 0.1);
  border: 2px solid rgba(39, 174, 96, 0.2);
  color: #27ae60;
}

.message-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.message-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Form Styling */
.login-form {
  margin-bottom: 20px;
}

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.label-icon {
  font-size: 1rem;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 0.95rem;
  background: #fafbfc;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.input-decoration {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.input-wrapper input:focus + .input-decoration {
  width: 100%;
}

/* Error Messages */
.field-error,
.form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(231, 76, 60, 0.05);
  border-radius: 8px;
  border-left: 3px solid #e74c3c;
}

.error-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Login Button */
.login-btn {
  width: 100%;
  position: relative;
  border: none;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-icon {
  font-size: 1.1rem;
}

.btn-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.login-btn:hover .btn-bg {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.login-btn:active {
  transform: translateY(-1px);
}

/* Quick Actions */
.quick-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-icon {
  font-size: 0.9rem;
}

.action-item a {
  color: #667eea;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.action-item a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.action-divider {
  color: #ddd;
  font-weight: bold;
}

/* Info Box */
.info-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(
    45deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  padding: 16px 20px;
  border-radius: 15px;
  border: 2px solid rgba(102, 126, 234, 0.2);
}

.info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-text {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

.info-text strong {
  color: #667eea;
  font-weight: 600;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive Design */
@media (max-width: 580px) {
  .login-wrapper {
    padding: 20px 15px 15px 15px;
    min-height: calc(100vh - 80px);
    padding-top: 150px !important; /* Navbar için extra padding */
  }

  .login-card {
    padding: 25px 20px;
    border-radius: 16px;
  }

  .logo-section {
    flex-direction: column;
    gap: 8px;
  }

  .logo-section h1 {
    font-size: 1.4rem;
  }

  .login-header h2 {
    font-size: 1.3rem;
  }

  .input-wrapper input {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .btn-content {
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  .quick-actions {
    flex-direction: column;
    gap: 10px;
  }

  .action-divider {
    display: none;
  }

  .bg-shape-1,
  .bg-shape-2,
  .bg-shape-3 {
    display: none;
  }
}

@media (max-width: 400px) {
  .login-wrapper {
    padding: 15px 10px 10px 10px;
    min-height: calc(100vh - 80px);
    padding-top: 160px !important; /* Mobilde daha fazla padding */
  }

  .login-card {
    padding: 20px 15px;
    border-radius: 12px;
  }

  .info-box {
    padding: 12px 16px;
  }

  .info-text {
    font-size: 0.8rem;
  }
}

/* Çok küçük ekranlar için ek düzenleme */
@media (max-width: 375px) {
  .login-wrapper {
    padding-top: 110px; /* En küçük ekranlarda daha da fazla */
    padding-bottom: 20px;
  }

  .login-card {
    margin: 0 5px;
  }
}

/* Campus theme colors */
.campus-primary {
  color: #667eea;
}

.campus-secondary {
  color: #764ba2;
}

.campus-bg-primary {
  background-color: #667eea;
}

.campus-bg-secondary {
  background-color: #764ba2;
}
