/* Bhagwa (Saffron) Color Scheme for Yagya Ledger */
/* Primary: Bhagwa (Saffron), Secondary: White, Accent: Green */

:root {
  --primary-color: #FF9933;
  --secondary-color: #FFFFFF;
  --accent-color: #138808;
  --text-color: #333333;
  --background-color: #F5F5F5;
  --card-background: #FFFFFF;
  --border-color: #E0E0E0;
}

/* MDC Customizations for Bhagwa Theme */
.mdc-top-app-bar {
  background-color: var(--primary-color) !important;
}

.mdc-top-app-bar__title {
  color: var(--secondary-color) !important;
}

.mdc-top-app-bar__action-item {
  color: var(--secondary-color) !important;
}

.mdc-button--raised {
  background-color: var(--primary-color) !important;
  color: var(--secondary-color) !important;
}

.mdc-button--raised:hover {
  background-color: #E8890B !important;
}

.mdc-text-field--outlined .mdc-notched-outline__leading,
.mdc-text-field--outlined .mdc-notched-outline__notch,
.mdc-text-field--outlined .mdc-notched-outline__trailing {
  border-color: var(--primary-color) !important;
}

.mdc-text-field--outlined.mdc-text-field--focused .mdc-notched-outline__leading,
.mdc-text-field--outlined.mdc-text-field--focused .mdc-notched-outline__notch,
.mdc-text-field--outlined.mdc-text-field--focused .mdc-notched-outline__trailing {
  border-color: var(--primary-color) !important;
  border-width: 2px !important;
}

.mdc-floating-label {
  color: var(--primary-color) !important;
}

.mdc-text-field--focused .mdc-floating-label {
  color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mdc-layout-grid__cell--span-12 {
    padding: 8px;
  }
  
  .mdc-top-app-bar__section--align-end {
    display: none; /* Hide nav on mobile, can add drawer later */
  }
}

@media (min-width: 769px) {
  .mdc-layout-grid__cell--span-12 {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Login Page Styles */
.login-background {
  background-image: url('../images/yagya-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-header {
  background: linear-gradient(135deg, var(--primary-color), #E8890B);
  color: white;
  padding: 40px 32px 32px;
  text-align: center;
}

.logo-section .logo-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.logo-section h1 {
  margin: 0 0 8px 0;
  font-weight: 500;
  color: white;
}

.logo-section p {
  margin: 0;
  opacity: 0.9;
  font-size: 16px;
}

.login-form-section {
  padding: 32px;
  text-align: center;
}

.login-field {
  margin-bottom: 24px;
  width: 300px;
}

.login-actions {
  text-align: center;
  margin-top: 32px;
}

.login-button {
  min-width: 120px;
  height: 48px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-info {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.demo-info p {
  color: #666;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .login-container {
    padding: 16px;
  }
  
  .login-header {
    padding: 32px 24px 24px;
  }
  
  .login-form-section {
    padding: 24px 20px;
  }
  
  .logo-section .logo-image {
    width: 60px;
    height: 60px;
  }
}