/*
 * Styles for the StudyRep sign in page.
 * Extracted from inline CSS to live in the static files directory.
 */

 html,
 body {
   margin: 0;
   padding: 0;
   font-family: "Poppins", sans-serif;
   background-color: #f7f5fc;
   color: #2c1c49;
 }
 a {
   text-decoration: none;
 }
 
 /* Button utilities reused from the landing page */
 .btn {
   display: inline-block;
   padding: 0.25rem 0.5rem;
   border-radius: 1.25rem;
   font-weight: 600;
   font-size: 0.95rem;
   transition: background-color 0.2s ease, color 0.2s ease;
   color: #462885;
 }
 .btn-login {
   background-color: rgba(255, 255, 255, 0.9);
   color: #667eea;
   border: 2px solid rgba(255, 255, 255, 0.3);
   backdrop-filter: blur(10px);
   transition: all 0.3s ease;
 }
 .btn-login:hover,
 .btn-login:focus {
   background-color: rgba(255, 255, 255, 1);
   color: #764ba2;
   transform: translateY(-2px);
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
 }
 .btn-register {
   background-color: rgba(255, 255, 255, 0.15);
   color: #ffffff;
   border: 2px solid rgba(255, 255, 255, 0.3);
   backdrop-filter: blur(10px);
   margin-left: 0.75rem;
   transition: all 0.3s ease;
 }
 .btn-register:hover,
 .btn-register:focus {
   background-color: rgba(255, 255, 255, 0.25);
   color: #ffffff;
   transform: translateY(-2px);
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
 }
 
 /* Navigation bar styling */
 .navbar {
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
   position: sticky;
   top: 0;
   z-index: 10;
   backdrop-filter: blur(10px);
 }

 .navbar-top {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0.75rem 2rem;
 }

 .navbar-bottom {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0.5rem 2rem 1rem;
   gap: 1rem;
 }
 .brand {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.brand-link {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}
 .icon-wrapper {
   width: 48px;
   height: 48px;
   border-radius: 12px;
   overflow: hidden;
   margin-right: 0.5rem;
   flex-shrink: 0;
 }
 .icon-wrapper img {
   width: 100%;
   height: 100%;
   display: block;
 }
 .brand-name {
  font-family: "Fredoka One", cursive;
  font-size: 1.6rem;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  margin-left: 0.5rem;
}
 /* Search bar in nav */
 .search {
   position: relative;
   flex: 1;
   max-width: 450px;
 }
 .search input {
   width: 100%;
   height: 40px;
   border: none;
   border-radius: 20px;
   background-color: rgba(255, 255, 255, 0.9);
   padding-left: 2.5rem;
   padding-right: 1rem;
   font-size: 0.9rem;
   color: #2d3748;
   outline: none;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
   backdrop-filter: blur(10px);
   transition: all 0.3s ease;
 }
 .search input::placeholder {
   color: #718096;
 }
 .search input:focus {
   background-color: rgba(255, 255, 255, 1);
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
   transform: translateY(-1px);
 }
 .search .search-icon {
   position: absolute;
   left: 0.75rem;
   top: 50%;
   transform: translateY(-50%);
   background: none;
   border: none;
   padding: 0;
   line-height: 0;
   color: #667eea;
   cursor: pointer;
   transition: color 0.3s ease;
 }
 .search .search-icon:hover,
 .search .search-icon:focus {
   color: #764ba2;
 }
 .auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
 .user-greeting {
   color: #ffffff;
   font-weight: 500;
   margin-right: 1rem;
   text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
 }
 
 /* Hero section for tagline */
 .hero {
   background-image: linear-gradient(180deg, #9b6ce6 0%, #7f4cb8 100%);
   text-align: center;
   color: #ffffff;
   padding: 4rem 1rem 3rem;
 }
 .hero h1 {
   font-family: "Fredoka One", cursive;
   font-size: 2rem;
   margin: 0;
   margin-bottom: 0.25rem;
   line-height: 1.3;
   text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
 }
 .hero p {
   font-size: 1.2rem;
   margin: 0;
   font-weight: 500;
   text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
 }
 
 /* Authentication section */
 .auth-section {
   background-color: #f7f5fc;
   display: flex;
   flex-direction: column;
   align-items: center;
   padding: 3rem 1rem;
 }
 .alerts-container {
   width: 100%;
   max-width: 420px;
   margin-bottom: 1rem;
 }
 .alerts-container .alert {
   border-radius: 0.75rem;
 }
 .auth-card {
   background-color: #d9c1ff;
   border-radius: 1.5rem;
   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
   width: 100%;
   max-width: 420px;
   padding: 2.5rem 2rem;
   display: flex;
   flex-direction: column;
   align-items: stretch;
 }
 .auth-card h2 {
   font-family: "Fredoka One", cursive;
   font-size: 1.8rem;
   text-align: center;
   margin-top: 0;
   margin-bottom: 1.5rem;
   color: #ffffff;
 }
 .auth-card .form-group {
   margin-bottom: 1.25rem;
 }
 .auth-card input[type="text"],
 .auth-card input[type="password"] {
   width: 100%;
   padding: 0.75rem 1rem;
   border: 1px solid #cbb0f3;
   border-radius: 10px;
   font-size: 0.95rem;
   color: #5c3a89;
   background-color: #ffffff;
 }
 .auth-card input[type="text"]:focus,
 .auth-card input[type="password"]:focus {
   outline: none;
   border-color: #a779d6;
   box-shadow: 0 0 0 2px rgba(167, 121, 214, 0.2);
 }
 .auth-card .login-btn-submit {
   width: 100%;
   padding: 0.75rem;
   border: none;
   border-radius: 10px;
   background-color: #a779d6;
   color: #ffffff;
   font-weight: 600;
   font-size: 1rem;
   cursor: pointer;
   transition: background-color 0.2s ease;
   margin-top: 0.25rem;
 }
 .auth-card .login-btn-submit:hover,
 .auth-card .login-btn-submit:focus {
   background-color: #9558c3;
 }
 .auth-card .forgot-link {
   display: block;
   margin-top: 0.25rem;
   margin-bottom: 0.75rem;
   font-size: 0.85rem;
   text-align: right;
   color: #5c3a89;
 }
 .auth-card .forgot-link:hover,
 .auth-card .forgot-link:focus {
   text-decoration: underline;
 }
 .auth-card .bottom-area {
   margin-top: 1rem;
   padding-top: 1rem;
   border-top: 1px solid rgba(255, 255, 255, 0.4);
   display: flex;
   justify-content: center;
 }
 .auth-card .bottom-area a {
   display: inline-block;
   padding: 0.5rem 1.25rem;
   border-radius: 10px;
   background-color: #ffffff;
   color: #a779d6;
   font-weight: 600;
   border: 2px solid #a779d6;
   transition: all 0.2s ease;
 }
 .auth-card .bottom-area a:hover,
 .auth-card .bottom-area a:focus {
   background-color: #a779d6;
   color: #ffffff;
 }
 
 /* Footer styling */
 footer {
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   padding: 2rem 1rem;
   text-align: center;
   color: #ffffff;
   box-shadow: 0 -4px 20px rgba(102, 126, 234, 0.3);
 }
 footer .footer-brand {
   font-family: "Fredoka One", cursive;
   font-size: 1.6rem;
   color: #ffffff;
   margin-bottom: 1rem;
   text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
 }
 footer .footer-links {
   display: flex;
   justify-content: center;
   gap: 3rem;
   flex-wrap: wrap;
   font-size: 0.9rem;
 }
 footer .footer-links a {
   color: rgba(255, 255, 255, 0.9);
   transition: all 0.3s ease;
   text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
 }
 footer .footer-links a:hover,
 footer .footer-links a:focus {
   color: #ffffff;
   text-decoration: none;
   transform: translateY(-1px);
   text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
 }
 
 /* Responsive adjustments */
 @media (max-width: 768px) {
  /* Navbar mobile adjustments */
  .navbar-top {
    padding: 0.4rem 1rem;
    min-height: auto;
  }
  
  .navbar-bottom {
    padding: 0.2rem 1rem 0.4rem;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: space-between;
    flex-wrap: wrap;
  }
   
     .brand {
    margin-right: 1rem;
  }
  
  .brand {
    margin-right: 0.5rem;
  }
  
  .brand-name {
    font-size: 1.1rem;
  }
  
  .icon-wrapper {
    width: 28px;
    height: 28px;
  }
  
  .search {
    width: 100%;
    max-width: none;
  }
  
  .auth {
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-direction: row;
  }
   
   .user-greeting {
     display: none;
   }
   
   .btn-login,
   .btn-register {
     padding: 0.25rem 0.5rem;
     font-size: 0.7rem;
     margin-left: 0.1rem;
   }
   
   .btn-browse {
     padding: 0.3rem 0.8rem;
     font-size: 0.75rem;
   }
   
   /* Hero section adjustments */
   .hero {
     padding: 3rem 1rem 2rem;
   }
   .hero h1 {
     font-size: 1.7rem;
   }
   .hero p {
     font-size: 1.1rem;
   }
   
   /* Footer mobile adjustments */
   footer .footer-links {
     gap: 1.5rem;
     font-size: 0.85rem;
   }
 }
 
 @media (max-width: 480px) {
  .navbar-top {
    padding: 0.3rem 0.75rem;
  }
  
  .navbar-bottom {
    padding: 0.1rem 0.75rem 0.3rem;
  }
   
   .brand-name {
     font-size: 1.2rem;
   }
   
   .icon-wrapper {
     width: 32px;
     height: 32px;
   }
   
   .auth {
     gap: 0.2rem;
   }
   
   .user-greeting {
     font-size: 0.75rem;
     margin-right: 0.3rem;
   }
   
   .btn-login,
   .btn-register {
     padding: 0.25rem 0.5rem;
     font-size: 0.7rem;
     margin-left: 0.2rem;
   }
   
   .btn-browse {
     padding: 0.25rem 0.6rem;
     font-size: 0.7rem;
   }
   
   footer .footer-links {
     flex-direction: column;
     gap: 1rem;
   }
 }