@import url(../../global/normalize.css);
@import url(../../global/variables.css);

:root {
    --border-color: #E0E0E0;
    --text-dark: #1C1C1E;
    --text-light: #FFFFFF;
    --text-secondary: #6E6E73;
    --background-form: #FFFFFF;
}

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

html {
    height: 100%;
}

body {
    display: flex;
    min-height: 100vh;
}

.info-section {
    flex: 0.8; 
    background-color: var(--orange);
    color: var(--text-light);
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.info-section .logo {
    font-weight: 700;
    font-size: 1.5rem;
    position: absolute;
    top: 3rem;
}

.info-section h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 450px;
}

.info-section p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 5rem;
    max-width: 400px;
}
.testimonial-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
}
.testimonial-author span {
    font-weight: 600;
}
.testimonial-author .stars {
    margin-left: auto;
    color: #FFC700;
}

.form-section {
    flex: 1.2;
    background-color: var(--background-form);
    padding: 3rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    overflow-y: auto;
}

.form-content {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.form-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-content .subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}
.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 65, 0.15);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.form-options .remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.form-options a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
}
.form-options a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background-color: var(--orange);
    color: var(--text-light);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.submit-btn:hover { background-color: var(--orange-hover); }

.signup-link {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
}
.signup-link a {
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
}
    .signup-link a:hover {
    text-decoration: underline;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 2.5rem; 
}

.password-wrapper .toggle-password {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary);
    user-select: none;
    width: 1em; 
    text-align: center;
}

.form-group .error-message {
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 0.5rem;
    font-weight: 500;
    display: none;
}

.info-section-btn {
    width: 100%;
    max-width: 400px;
    background: none;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s;
}
.info-section-btn:hover {
    background-color: var(--text-light);
    color: var(--orange);
}

.testimonial-slider {
    position: relative;
    max-width: 400px;
    margin-bottom: 1rem;
    width: 100%;
}
.testimonial-progress {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}
.testimonial-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff9c2b 0%, #f7a326 100%); /*#ffdba4 #fff8f2*/
    transition: width 0.3s linear;
}
.testimonial-card.slide-right {
    animation: slideRight 0.35s cubic-bezier(.4,0,.2,1);
}
@keyframes slideRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    60% {
        opacity: 0;
        transform: translateX(60px) scale(0.96);
    }
    100% {
        opacity: 0;
        transform: translateX(80px) scale(0.96);
    }
}
@media (max-width: 900px) {
    body {
        overflow-y: scroll;
        flex-direction: column;
    }

    .info-section {
        flex: none; 
        height: auto;
        padding: 4rem 2rem;
        text-align: center;
    }
    .info-section .logo,
    .info-section h1,
    .info-section p,
    .testimonial-card {
        position: static;
        margin-left: auto;
        margin-right: auto;
    }
    .info-section h1 { font-size: 2rem; }

    .form-section {
        flex: none;
        padding: 3rem 2rem;
    }

    .testimonial-slider {
        max-width: 98vw;
    }

    .testimonial-card {
        margin-top: 1rem;
    }
}