/* 
* Dairoot Patient Portal Login Page Styles
* Created: 2025-02-28
* Author: Lee Young-Woong
*/

:root {
  /* Main colors - updated for Dairoot branding */
  --primary-color: #1B5E20;      /* Dark Green */
  --primary-dark: #0A3D11;       /* Deeper Green */
  --primary-light: #A5D6A7;      /* Light Green */
  
  /* Secondary colors */
  --secondary-color: #00796B;    /* Teal */
  --secondary-light: #B2DFDB;    /* Light Teal */
  
  /* Neutral colors */
  --neutral-dark: #263238;       /* Dark Blue-Grey */
  --neutral-medium: #607D8B;     /* Medium Blue-Grey */
  --neutral-light: #ECEFF1;      /* Light Blue-Grey */
  
  /* Background and text colors */
  --bg-light: #F5F5F5;           /* Light Grey Background */
  --bg-white: #FFFFFF;           /* White Background */
  --text-dark: #212121;          /* Dark Text */
  --text-medium: #546E7A;        /* Medium Text */
  --text-light: #90A4AE;         /* Light Text */
}

.login-page {
  background-color: var(--bg-light);
  background-size: cover;
  font-family: 'Noto Sans', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
}

.language-selector {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 10;
}

.login-container {
  background-color: var(--bg-white);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.login-title {
  font-family: 'Noto Sans', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--text-medium);
  margin-bottom: 1rem;
}

.login-link {
  color: var(--primary-color);
  font-size: 0.875rem;
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* Separator line with text */
.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--neutral-light);
}

.separator span {
  padding: 0 1rem;
}

/* Social login buttons */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-google {
  background-color: #FFFFFF;
  color: #5F6368;
  border: 1px solid #DADCE0;
}

.btn-google:hover {
  background-color: #F8F9FA;
  color: #3C4043;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.btn-apple {
  background-color: #000000;
  color: #FFFFFF;
  border: none;
}

.btn-apple:hover {
  background-color: #333333;
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Primary button */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  border-radius: 0.5rem;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary-color);
  color: white;
}

.register-guide {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--neutral-light);
}

.register-guide p {
  color: var(--text-medium);
  margin-bottom: 1rem;
}

/* Right banner styles */
.login-banner {
  height: 100%;
  background-color: var(--primary-color);
  background-image: url('../images/user/dairoot-banner-bg.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.login-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.85), rgba(0, 121, 107, 0.85));
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-title {
  font-family: 'Noto Sans', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: white;
}

.banner-text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.banner-features {
  list-style-type: none;
  padding: 0;
  margin-bottom: 2rem;
}

.banner-features li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.banner-features li i {
  color: #FFFFFF;
  margin-right: 0.75rem;
  font-size: 1rem;
}

.banner-app {
  margin-top: auto;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.banner-app p {
  margin-bottom: 1rem;
  font-weight: 500;
}

.banner-app-links {
  display: flex;
}

/* Footer */
.login-footer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--neutral-light);
}

/* Input groups */
.input-group .form-control {
  border-radius: 0 0.5rem 0.5rem 0;
}

.input-group-text {
  background-color: var(--neutral-light);
  border-radius: 0.5rem 0 0 0.5rem;
  border-color: #ced4da;
  color: var(--text-medium);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .login-container {
    padding: 2rem;
  }
}

@media (max-width: 767.98px) {
  .login-container {
    padding: 1.5rem;
  }
  
  .login-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .btn-social {
    font-size: 0.9rem;
    padding: 0.625rem 1rem;
  }
}