/* Authentication Styles 
   Consolidated from login.html, forgot.html, change_password.html
*/

@import 'variables.css';

/* Authentication Container Layout */
.auth-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-box {
  background-color: var(--dark-panel);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 2rem;
  border-top: 4px solid var(--primary-color);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-logo img {
  width: 150px;
  height: auto;
  border-radius: 12px;
}

/* Typography */
.auth-content {
  color: var(--text-light);
}

.auth-content h1 {
  color: white;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-content h2 {
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-description {
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-light);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
  outline: none;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check-input {
  width: 16px;
  height: 16px;
}

.form-check-label {
  font-size: 0.95rem;
}

.form-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Action Buttons and Links */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.form-actions .btn-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.form-actions .btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

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

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

.form-actions .btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
}

.form-actions .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.auth-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  text-align: center;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Alert Messages */
.auth-messages {
  background-color: rgba(255, 193, 7, 0.2);
  border-left: 3px solid #ffc107;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.auth-message {
  margin-bottom: 0.5rem;
}

.auth-message:last-child {
  margin-bottom: 0;
}

.auth-message-success, .auth-message.success {
  color: #28a745;
}

.auth-message-danger, .auth-message.error {
  color: #dc3545;
}

.auth-message-warning {
  color: #ffc107;
}

.auth-message-info {
  color: #17a2b8;
}

/* Light Theme Variations */
body.light-theme .auth-box {
  background-color: var(--light-panel);
}

body.light-theme .auth-content {
  color: var(--text-dark);
}

body.light-theme .auth-content h1 {
  color: var(--text-dark);
}

body.light-theme .form-control {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

/* Responsive Styling */
@media (max-width: 576px) {
  .auth-container {
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .auth-box {
    padding: 1.5rem;
  }
  
  .auth-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  
  .form-actions .btn-container {
    flex-direction: column;
  }
} 