* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'poppins', sans-serif;
}

body {
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  display: flex;
  width: 90%;
  max-width: 1000px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: #fff;
  border-radius: 50px;
}

.left-panel {
  flex: 1;
  background: url('/uploads/loginSlides/1.webp') no-repeat center center/cover;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
  border:5px #fff solid;
  border-radius: 50px;

}


.overlay {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 50px;
  z-index: 9;
}

.top-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  z-index: 10;
  position: relative;
}

.top-menu a {
  color: #fff;
  margin-left: 10px;
  text-decoration: none;
}

.community-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 5px;
  z-index:10;
  width: fit-content;
  backdrop-filter: blur(10px);
  border-radius: 20px;
}

.avatars {
  display: flex;
  align-items: center;
}

.avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
  background: white;
  object-fit: cover;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.avatars img:first-child {
  margin-left: 0;
}

.text h4 {
  font-size: 16px;
  font-weight: 600;
}

.text p {
  font-size: 12px;
  color: #ccc;
}


.login-card {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
}


.logo {
  position: absolute;
  right: 0px;
  top: 0px;
}
.logo img{
  width: 48px;
  height: 48px;
}

.login-card h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 5px;
  color: #1b262c;
}

.login-card p {
  color: #666;
  margin-bottom: 20px;
}

.login-card .error {
  color: #ea4335;
  margin-bottom: 15px;
}

form input {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.forgot {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #0f4c75;
  margin-bottom: 20px;
  text-decoration: none;
}

.login-btn {
  background: #0f4c75;
  color: white;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.or {
  text-align: center;
  margin: 20px 0;
  color: #aaa;
}

.google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}
.sign-btn{
    background: #0f4c75;
    border: 2px solid #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
}
.sign-btn:hover{
    background: #1b262c;
}
.join-btn{
    border: 2px solid #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.join-btn:hover{
    background-color: #1b262c;
}
.register-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.register-link a {
  color: #0f4c75;
  text-decoration: none;
  font-weight: 600;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-icons img {
  width: 25px;
}

/* //slideshow  */
.slide-show {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50px;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 50px;
}

.slide.active {
  opacity: 1;
  z-index: 1;
  border-radius: 50px;
}

.slide-filter {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 5;
  border-radius: 50px; 
  pointer-events: none; 
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    max-width: 350px;
    padding: 10px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    transform: translateX(0);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.toast.hiding {
    transform: translateX(100%);
    opacity: 0;
}

.toast-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.toast-error {
    background-color: #ea4335;
    border: 1px solid #f5c6cb;
    color: #fff;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    font-family: 'poppins', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
  display:none;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading state for login button */
.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-btn.loading {
    position: relative;
    color: transparent;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast info style (for countdown) */
.toast-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* =======================FORGOT PASS=========================== */
/* Forgot Password Styles */
.forgot-password-container,
.verify-container,
.reset-container {
    max-width: 450px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.forgot-password-container h1,
.verify-container h1,
.reset-container h1 {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.forgot-password-container p,
.verify-container p,
.reset-container p {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-to-login a {
    color: #4a6cf7;
    text-decoration: none;
}

.back-to-login a:hover {
    text-decoration: underline;
}

/* Code Input Styles */
.code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-weight: bold;
}

.code-input:focus {
    border-color: #4a6cf7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
}

.timer {
    text-align: center;
    color: #666;
    margin: 15px 0;
    font-size: 14px;
}

.resend-link {
    text-align: center;
    margin: 20px 0;
}

.resend-link a {
    color: #4a6cf7;
    text-decoration: none;
}

.resend-link a:hover {
    text-decoration: underline;
}

.resend-link.disabled {
    color: #999;
    cursor: not-allowed;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-weight: bold;
}

.step.active {
    background: #4a6cf7;
    color: white;
}

.step.completed {
    background: #28a745;
    color: white;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #ddd;
    align-self: center;
}

.step-line.active {
    background: #4a6cf7;
}

.step-line.completed {
    background: #28a745;
}

/* Password Strength */
.password-strength {
    margin-top: 5px;
    height: 5px;
    background: #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.strength-text {
    font-size: 12px;
    margin-top: 5px;
    color: #666;
}

.password-requirements {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.requirement {
    display: flex;
    align-items: center;
    margin: 3px 0;
}

.requirement i {
    margin-right: 5px;
    font-size: 14px;
}

.requirement.valid {
    color: #28a745;
}

.requirement.invalid {
    color: #dc3545;
}

/* ========================== */
/* Success and Error Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    display: flex;
    align-items: center;
}

.success-message:before {
    content: "✓";
    margin-right: 10px;
    font-weight: bold;
    font-size: 18px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    display: flex;
    align-items: center;
}

.error-message:before {
    content: "✗";
    margin-right: 10px;
    font-weight: bold;
    font-size: 18px;
}

/* Password Strength Indicator */
.password-strength {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 12px;
    margin-top: 5px;
    color: #666;
}