/* Login Page Styling - Matching Map My Heritage theme */

/* Main container */
.login-container {
    min-height: calc(100vh - 76px); /* Full height minus navbar */
    display: flex;
    overflow: hidden;
    flex: 1;
}

/* Row to fill full height */
.login-container .row {
    width: 100%;
}

/* Left side with image */
.login-image {
    height: 100%;
    min-height: calc(100vh - 76px);
    background-image: url('images/Taj\ Mahal\ Hero\ Image.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay with tricolor gradient */
.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 153, 51, 0.8) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(19, 136, 8, 0.8) 100%);
    z-index: 1;
}

/* Quotes section */
.login-quotes {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 40px;
}

.quote-box {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 30px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.quote-author {
    font-weight: 600;
    text-align: right;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Right side with form */
.login-form-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: calc(100vh - 76px);
    background-color: #fff;
    background-position: center;
    background-size: cover;
}

/* Tab styling */
.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d;
    position: relative;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
}

.tab-button:focus {
    outline: none;
}

.tab-button.active {
    color: #FF9933;
}

.tab-button.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FF9933, #FFFFFF, #138808);
    animation: tabGradient 3s linear infinite;
    background-size: 200% auto;
}

@keyframes tabGradient {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Form Styling */
.login-form-container h2 {
    color: #434A54;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-form-container h2:after {
    display: none; /* Remove the underline from h2 that's in app.css */
}

.login-form-container label {
    font-weight: 600;
    color: #434A54;
    margin-bottom: 8px;
}

.login-form-container .form-control {
    height: 50px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.login-form-container .input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    color: #6c757d;
}

.login-form-container .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 51, 0.25);
    border-color: #FF9933;
}

.forgot-link {
    color: #FF9933;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #FF7E33;
    text-decoration: none;
}

/* Login Button */
.login-btn, .register-btn {
    height: 50px;
    margin-top: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Social Login */
.social-login {
    margin-top: 30px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-buttons .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.google-btn {
    background-color: #dd4b39;
    color: white;
}

.facebook-btn {
    background-color: #3b5998;
    color: white;
}

.twitter-btn {
    background-color: #55acee;
    color: white;
}

.google-btn:hover,
.facebook-btn:hover,
.twitter-btn:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Toggle Password */
.toggle-password {
    cursor: pointer;
    border-left: none;
    background-color: #f8f9fa;
}

/* Animation specific adjustments */
.animate__fadeInLeft, 
.animate__fadeInRight {
    --animate-duration: 0.5s;
}

.animate__fadeOutLeft,
.animate__fadeOutRight {
    --animate-duration: 0.5s;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .login-form-container {
        padding: 30px 20px;
    }
    
    .login-container {
        min-height: calc(100vh - 76px);
    }
    
    .tab-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .login-form-container h2 {
        font-size: 1.8rem;
    }
}

/* Add Indian tricolor accent to checkboxes */
.form-check-input:checked {
    background-color: #FF9933;
    border-color: #FF9933;
}

/* Form validation styling */
.was-validated .form-control:valid:focus, 
.form-control.is-valid:focus {
    border-color: #138808;
    box-shadow: 0 0 0 0.2rem rgba(19, 136, 8, 0.25);
}

.was-validated .form-control:invalid:focus, 
.form-control.is-invalid:focus {
    border-color: #FF9933;
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 51, 0.25);
}

/* Terms links styling */
.form-check-label a {
    color: #FF9933;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-check-label a:hover {
    color: #FF7E33;
    text-decoration: none;
}

/* Password strength indicator */
.password-strength {
    height: 5px;
    margin-top: 10px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-weak {
    background-color: #dc3545;
    width: 30%;
}

.strength-medium {
    background-color: #ffc107;
    width: 60%;
}

.strength-strong {
    background-color: #138808;
    width: 100%;
}

/* Fix for bootstrap row and container issues */
.no-gutters {
    margin-right: 0;
    margin-left: 0;
    width: 100%;
    height: 100%;
}

.no-gutters > .col,
.no-gutters > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
    height: 100%;
}

/* Override body styles to ensure full height */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Fix navbar height calculations */
.navbar {
    height: 76px;
    flex-shrink: 0;
}

/* Fix scrollbar appearance issues */
html {
    scrollbar-width: thin;
}

/* Make sure backgrounds extend fully */
.login-image, 
.login-form-container {
    background-position: center;
    background-size: cover;
    min-height: calc(100vh - 76px);
}
/* Add to your login1.css file */

/* Password strength meter */
.password-strength-meter {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    margin-top: 5px;
}

.password-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
    width: 0;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.loading-text {
    color: #434A54;
    margin-top: 10px;
    font-weight: 600;
}

/* Fix animations */
#login-form, #register-form, #reset-form {
    animation-duration: 0.5s;
}

/* Back to login link */
.back-link {
    color: #FF9933;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #FF7E33;
    text-decoration: none;
}

/* Fix Google login button */
.google-btn {
    transition: all 0.3s ease;
}

.google-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(221, 75, 57, 0.4);
}

/* Fixed login button styles */
.btn-primary {
    background: linear-gradient(135deg, #FF9933 0%, #FF7E33 100%);
    border-color: #FF9933;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 153, 51, 0.3);
}

/* Fix for animation classes */
.animate__animated {
    animation-fill-mode: both;
}

/* Ensure alerts look good */
.alert {
    border-radius: 8px;
    animation-duration: 0.5s;
}

/* Ensure full height form container */
.login-form-container {
    display: flex;
    flex-direction: column;
}

/* Fix navbar brand animation class */
.navbar-brand.animate__animated {
    animation-duration: 1s;
}
