/* Devise Views Styling - Matching Landing Page Theme */

.devise-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  background: #0B0615;
  position: relative;
  overflow: hidden;
}

.devise-container::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: rgba(147, 51, 234, 0.1);
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
}

.devise-card {
  background: #14101F;
  border-radius: 16px;
  padding: 48px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 40px rgba(147, 51, 234, 0.1);
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.devise-header {
  text-align: center;
  margin-bottom: 32px;
}

.devise-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.devise-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.devise-logo-text {
  font-weight: 700;
  font-size: 24px;
  color: #fff;
}

.devise-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.devise-subtitle {
  color: #9ca3af;
  font-size: 14px;
}

.devise-form {
  margin-top: 32px;
}

.devise-field {
  margin-bottom: 24px;
}

.devise-field label {
  display: block;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.devise-field input[type="email"],
.devise-field input[type="password"],
.devise-field input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all 0.3s;
}

.devise-field input[type="email"]:focus,
.devise-field input[type="password"]:focus,
.devise-field input[type="text"]:focus {
  outline: none;
  border-color: rgba(147, 51, 234, 0.5);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.devise-field input::placeholder {
  color: #6b7280;
}

.devise-field em {
  color: #9ca3af;
  font-size: 12px;
  font-style: normal;
  display: block;
  margin-top: 4px;
}

.devise-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.devise-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #9333ea;
  cursor: pointer;
}

.devise-checkbox label {
  color: #e5e7eb;
  font-size: 14px;
  margin: 0;
  cursor: pointer;
}

.devise-actions {
  margin-top: 32px;
}

.devise-actions input[type="submit"],
.devise-btn-primary {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', system-ui, sans-serif;
}

.devise-actions input[type="submit"]:hover,
.devise-btn-primary:hover {
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

.devise-links {
  margin-top: 24px;
  text-align: center;
}

.devise-links a {
  color: #c084fc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  display: inline-block;
  margin: 0 8px;
}

.devise-links a:hover {
  color: #f472b6;
  text-decoration: underline;
}

.devise-error-messages {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.devise-error-messages h2 {
  color: #fca5a5;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.devise-error-messages ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.devise-error-messages li {
  color: #fca5a5;
  font-size: 14px;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.devise-error-messages li::before {
  content: "⚠";
  position: absolute;
  left: 0;
}

.devise-notice,
.devise-alert {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}

.devise-notice {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.devise-alert {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.devise-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #6b7280;
  font-size: 14px;
}

.devise-divider::before,
.devise-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.devise-divider span {
  padding: 0 16px;
}

/* Cancel account section */
.devise-cancel-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.devise-cancel-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

.devise-cancel-section p {
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 16px;
}

.devise-btn-danger {
  padding: 12px 24px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', system-ui, sans-serif;
}

.devise-btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.devise-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  margin-top: 24px;
  transition: color 0.3s;
}

.devise-back-link:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .devise-card {
    padding: 32px 24px;
  }
  
  .devise-title {
    font-size: 24px;
  }
  
  .devise-links a {
    display: block;
    margin: 8px 0;
  }
}
