/*
 * SMM Panel Pro - Auth Stylesheet
 * Login & Register Pages
 */

:root {
  --primary-color: #0d6efd;
  --primary-dark: #0b5ed7;
  --secondary-color: #6c757d;
  --border-radius: 12px;
  --box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #212529;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

/* Logo */
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
  color: #fff;
}

.logo-icon {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 36px;
  color: var(--primary-color);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.auth-logo h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-logo p {
  opacity: 0.9;
  font-size: 15px;
}

/* Card */
.auth-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--box-shadow);
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 24px;
}

/* Form */
.auth-form .form-floating {
  margin-bottom: 16px;
}

.auth-form .form-control {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 16px;
  height: auto;
  font-size: 16px;
}

.auth-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.auth-form .form-floating label {
  padding: 16px;
}

.auth-form .form-text {
  font-size: 12px;
  margin-top: 4px;
  padding-left: 4px;
}

/* Button */
.auth-form .btn-primary {
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

.auth-form .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Links */
.auth-form a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

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

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--secondary-color);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.auth-divider span {
  padding: 0 16px;
  font-size: 13px;
}

/* Register Link */
.auth-register {
  color: var(--secondary-color);
}

.auth-register a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

/* Footer */
.auth-footer {
  margin-top: 32px;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
}

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

.alert-warning {
  background: #fff3cd;
  color: #856404;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
}

/* Checkbox */
.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Password Toggle */
.pw-wrap .pw-field {
  position: relative;
}

.pw-wrap .pw-field .form-control {
  padding-right: 48px;
}

.pw-eye {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 44px;
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
  border-radius: 0 8px 8px 0;
  transition: color 0.2s;
}

.pw-eye:hover {
  color: #333;
}

/* Form labels */
.auth-form .form-label {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
  color: #374151;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-wrapper {
    padding: 16px;
  }
  
  .auth-card {
    padding: 24px;
  }
  
  .auth-logo h1 {
    font-size: 24px;
  }
  
  .logo-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
}
