@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1c1c2b;
    --accent-color: #5d59e1;
    --text-muted: #6c757d;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    overflow: hidden;
}

.auth-page-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #fff;
    position: relative;
}

/* Left Side - Image */
.auth-side-image {
    flex: 1.4;
    background-image: url('../images/login-office.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center; /* Vertically center the quote container */
    padding: 5rem;
}

.auth-side-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.quote-container {
    position: relative;
    z-index: 5;
    color: #fff;
    max-width: 550px;
    width: 100%;
    min-height: 300px; /* Give it space so absolute items don't float away */
    display: flex;
    align-items: center;
}

.quote-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%); /* Perfectly center each quote item inside container */
}

.quote-item.active {
    opacity: 1;
    pointer-events: auto;
}

.quote-text {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-style: italic;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.quote-author {
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

/* Right Side - Elliptical Curve (The one you liked) */
.auth-form-side {
    flex: 1;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    z-index: 10;
    margin-left: -200px;
    clip-path: ellipse(100% 100% at 100% 50%);
    box-shadow: -20px 0 40px rgba(0,0,0,0.1);
}

.login-form-container {
    width: 100%;
    max-width: 380px;
    text-align: center;
    margin-left: 100px;
}

.logo-container {
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.2rem;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.modern-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f4f6ff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modern-input:focus {
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(93, 89, 225, 0.1);
    outline: none;
}

.password-addon {
    height: 100%;
    padding: 0 1rem;
    border: none;
    background: transparent;
    z-index: 5;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.end-0 {
    right: 0;
}

.top-0 {
    top: 0;
}

.password-input {
    padding-right: 3.5rem !important;
}

.error-message {
    color: #f06548;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: none;
    font-weight: 500;
}

.input-error {
    border-color: #f06548 !important;
    background: #fffafa !important;
}

.btn-signin {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.2rem;
}

.btn-signin:hover {
    background: #2d2d42;
    transform: translateY(-2px);
}

.footer-text {
    position: absolute;
    bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
    z-index: 20;
}

@media (max-width: 992px) {
    .auth-side-image {
        display: none;
    }
    .auth-form-side {
        flex: 1;
        margin-left: 0;
        clip-path: none;
        width: 100%;
    }
    .login-form-container {
        margin-left: 0;
    }
}
