﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.background-section {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: end;
    padding: 2rem;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide:nth-child(1) {
    background-image: url('/images/login/1.jpg');
}

.carousel-slide:nth-child(2) {
    background-image: url('/images/login/2.jpg');
}

.carousel-slide:nth-child(3) {
    background-image: url('/images/login/3.jpg');
}

.carousel-indicators {
    position: absolute;
    bottom: 4rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

.photo-credit {
    color: white;
    font-size: 0.875rem;
    opacity: 0.8;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
}

.photo-credit a {
    color: white;
    text-decoration: none;
}

.photo-credit a:hover {
    text-decoration: underline;
}

.form-section {
    width: 480px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    flex-direction: row;
}

.logo {
    width: 60px;
    margin-right: 0.4rem;
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
    transition: all 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: #3182ce;
    background: white;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-control::placeholder {
    color: #a0aec0;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.password-toggle:hover {
    color: #4a5568;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #4a5568;
}

.remember-me input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: #3182ce;
}

.forgot-password {
    font-size: 0.875rem;
    color: #3182ce;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #2c5aa0;
}

.signin-btn {
    width: 100%;
    padding: 0.875rem;
    background: #7C1919;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.signin-btn:hover {
    background: #7c1919af;
    transform: translateY(-1px);
}

.signin-btn:active {
    transform: translateY(0);
}

.google-signin {
    width: 100%;
    padding: 0.875rem;
    background: #4a5568;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.google-signin:hover {
    background: #2d3748;
}

.google-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.signup-link {
    text-align: center;
    font-size: 0.875rem;
    color: #4a5568;
}

.signup-link a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

.bottom-credit {
    position: absolute;
    bottom: 2rem;
    right: 2.5rem;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #a0aec0;
}

.credit-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3182ce;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.validation-summary-errors {
    background: #fed7d7;
    color: #c53030;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #feb2b2;
    font-size: 0.875rem;
}

.field-validation-error {
    color: #c53030;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: row;
    }

    .background-section {
        display: none;
    }

    .form-section {
        width: 100vw;
        height: 100vh;
        padding: 2rem 1.5rem;
        justify-content: center;
        overflow-y: auto;
    }

    .welcome-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .logo-section {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .bottom-credit {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 2rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1.5rem 1rem;
    }

    .welcome-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .logo-section {
        margin-bottom: 1.5rem;
    }
}

/* Remove the validation icons */
.was-validated .form-control:valid,
.was-validated .form-control:invalid,
.needs-validation .form-control:valid,
.needs-validation .form-control:invalid,
.was-validated .form-select:valid,
.was-validated .form-select:invalid,
.needs-validation .form-select:valid,
.needs-validation .form-select:invalid {
    background-image: none !important;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70% {
    transform: translateX(-10px);
  }
  20%,
  40%,
  60% {
    transform: translateX(10px);
  }
  80% {
    transform: translateX(8px);
  }
  90% {
    transform: translateX(-8px);
  }
}

.input-shake {
  animation: shake 1.6s infinite;  
}

.custom-error-message {
    margin-top: 0.5rem;
    color: var(--bs-form-invalid-color);
    text-align: center;
}

.modal {
    --bs-modal-width: 450px;       
}

.modal-body {    
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.modal-logo {
    text-align: center;
}

.modal-logo img {
    width: 60px;
    height: 60px;    
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.back-link a{
    color: black
}
