/* Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.left-panel {
    flex: 1;
    background: url('../images/bg-login.jpeg') center center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 48px;
    color: white;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 59, 107, 0.1);
    z-index: 1;
}

.logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 80px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    padding: 4px;
}

.logo-icon span {
    background: #1D3B6B;
    border-radius: 2px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.testimonial-section {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
}

.testimonial-image-wrapper {
    margin-bottom: 32px;
}

.testimonial-image {
    width: 100%;
    max-width: 400px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    background: #1a1a1a;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.testimonial-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 59, 107, 0.1);
    pointer-events: none;
}

.testimonial-box {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-quote {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 24px;
    color: #2d2d2d;
}

.testimonial-author {
    font-size: 14px;
    color: #666;
}

.testimonial-author-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.right-panel {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    overflow-y: auto;
}

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

.welcome-logo {
    width: 280px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    margin-bottom: 40px;
}

.welcome-heading {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.5;
}

.error {
    background: #fef2f2;
    color: #dc2626;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #fecaca;
    font-size: 14px;
}

.form-group {
    margin-bottom: 24px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

.toggle-password:hover {
    color: #1D3B6B;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background: #fff;
    color: #1a1a1a;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #1D3B6B;
    box-shadow: 0 0 0 3px rgba(29, 59, 107, 0.1);
}

/* CAPTCHA Styles */
.captcha-group {
    margin-bottom: 24px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    justify-content: center;
}

#captchaCanvas {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.btn-refresh-captcha {
    background: #1D3B6B;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.btn-refresh-captcha:hover {
    background: #1a3560;
    transform: rotate(180deg);
}

.btn-refresh-captcha i {
    transition: transform 0.3s;
}

.captcha-input {
    width: 100% !important;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 3px;
    margin-top: 12px;
}

.captcha-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* Rate Limit Warning */
.rate-limit-warning {
    background: #fef3c7;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #fde68a;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    font-size: 16px;
}

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

.forgot-password {
    color: #1D3B6B;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #1a3560;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remember-me label {
    margin: 0;
    font-size: 14px;
    color: #374151;
    font-weight: 400;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #1D3B6B;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #1D3B6B;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.btn-login:hover {
    background: #1a3560;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 59, 107, 0.3);
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #9ca3af;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    padding: 0 16px;
}

.btn-google {
    width: 100%;
    padding: 14px;
    background: white;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.btn-google:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.google-icon {
    width: 20px;
    height: 20px;
    background: url('../images/google-icon.svg') no-repeat center;
    background-size: contain;
}

.signup-link {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

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

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

@media (max-width: 968px) {
    .login-wrapper {
        flex-direction: column;
    }
    .left-panel {
        display: none;
    }
    .right-panel {
        padding: 32px 24px;
    }
}

