/* Yahoo Login Page CSS Replica
 * Created: March 21, 2025
 * This file contains styles to replicate the Yahoo login page's appearance
 */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Main Container */
.yh-container {
  display: flex;
  min-height: 100vh;
  background-color: #ffffff;
}

/* Left Panel - Background Image */
.yh-background-panel {
  display: none; /* Hidden on mobile */
  position: relative;
 
    background: linear-gradient(to top, rgba(0, 0, 60, 0.1) 0%, rgba(0, 0, 9, 0.1) 40%, rgba(30, 5, 0, 1) 100%), 
              url('../img/proprietress.jpg') bottom left / cover no-repeat;
    
    a: linear-gradient(135deg, #400090 0%, #7e03aa 100%);
  overflow: hidden;
}

.yh-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.yh-brand-logo-large {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 130px;
  height: auto;
}

/* Right Panel - Login Form */
.yh-login-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background-color: #ffffff;
  position: relative;
}

.yh-mobile-logo-container {
  margin-bottom: 16px;
}

.yh-brand-logo-small {
  width: 120px;
  height: auto;
}

.yh-login-form-container {
  width: 100%;
  max-width: 360px;
}

.yh-login-header {
  text-align: center;
  margin-bottom: 36px;
}

.yh-login-title {
  font-size: 26px;
  font-weight: 600;
  color: #26282a;
  margin-bottom: 8px;
}

.yh-login-subtitle {
  font-size: 14px;
  color: #6e7780;
}

/* Form Elements */
.yh-form-group {
  margin-bottom: 20px;
}

.yh-form-label {
  display: block;
  font-size: 14px;
  color: #26282a;
  margin-bottom: 8px;
  font-weight: 600;
}

.yh-form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  border: 1px solid #d8dade;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.yh-form-input:focus {
  outline: none;
  border-color: #7e03aa;
  box-shadow: 0 0 0 1px #7e03aa;
}

.yh-form-input.yh-error {
  border-color: #ff0033;
  box-shadow: 0 0 0 1px #ff0033;
}

.yh-error-message {
  color: #ff0033;
  font-size: 12px;
  margin-top: 4px;
}

.yh-form-checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.yh-form-checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.yh-checkbox-label {
  font-size: 14px;
  color: #26282a;
}

/* Buttons */
.yh-btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
}

.yh-btn-primary {
  background-color: #7e03aa;
  color: white;
}

.yh-btn-primary:hover {
  background-color: #6a0290;
}

.yh-btn-secondary {
  background-color: transparent;
  color: #7e03aa;
  border: 1px solid #d8dade;
  margin-top: 16px;
}

.yh-btn-secondary:hover {
  background-color: #f5f5f5;
}

/* Links */
.yh-help-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.yh-link {
  color: #7e03aa;
  text-decoration: none;
  font-size: 14px;
}

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

/* Divider */
.yh-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}

.yh-divider-line {
  flex: 1;
  height: 1px;
  background-color: #d8dade;
}

.yh-divider-text {
  padding: 0 16px;
  color: #6e7780;
  font-size: 14px;
}

/* Footer */
.yh-footer {
  position: absolute;
  bottom: 24px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #6e7780;
  padding: 0 24px;
}

.yh-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}

.yh-footer-link {
  color: #6e7780;
  text-decoration: none;
}

.yh-footer-link:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .yh-background-panel {
    display: block;
    flex: 1;
  }
  
  .yh-login-panel {
    flex: 1;
  }
  
  .yh-mobile-logo-container {
    display: none;
  }
}

@media (min-width: 1200px) {
  .yh-background-panel {
    flex: 1.5;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.yh-fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Input Focus Animation */
.yh-form-input:focus + .yh-input-highlight {
  width: 100%;
}

.yh-input-highlight {
  position: absolute;
  height: 2px;
  width: 0;
  bottom: 0;
  left: 0;
  background: #7e03aa;
  transition: width 0.3s ease;
}

/* Loading Button Animation */
@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.yh-btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}
