* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --main-gradient-left: #764ba2;
    --main-gradient-right: #667eea;
    --main-bg: #f5f2fa;
    --main-btn: #764ba2;
    --main-btn-hover: #667eea;
    --main-text: #333;
    --main-accent: #c3b6e6;
}

body {
    background: linear-gradient(to right, var(--main-gradient-left), var(--main-gradient-right));
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    background: var(--main-bg);
    display: flex;
    flex-direction: row;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    max-height: 90%;
    width: 90%;
    overflow: hidden;
}

.form-section {
    padding: 40px;
    flex: 1;
}

.form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
}

h1 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--main-text);
}

.form-section p {
    font-size: 12px;
    margin-bottom: 30px;
    color: #555;
    margin-bottom: 10px;
}

p.subtitle {
    font-size: 12px;
    margin-bottom: 30px;
    color: #555;
    margin-bottom: 10px;
}

label {
    font-size: 12px;
    margin-bottom: 5px;
    color: var(--main-text);
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--main-accent);
    border-radius: 15px;
    background: #faf7ff;
    margin-bottom: 15px;
    font-size: 12px;
    color: var(--main-text);
}

.requirements {
    font-size: 10px;
    color: red;
    margin-bottom: 20px;
}

.submit-btn {
    background: linear-gradient(90deg, var(--main-btn), var(--main-btn-hover));
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: linear-gradient(90deg, var(--main-btn-hover), var(--main-btn));
}


.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.social-buttons button {
    flex: 1;
    padding: 5px;
    margin: 5px;
    border-radius: 20px;
    border: 1px solid var(--main-accent);
    background: #faf7ff;
    color: var(--main-text);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.form-footer {
    font-size: 11px;
    text-align: center;
}

.form-footer a {
    color: var(--main-btn);
    text-decoration: none;
    font-weight: bold;
}

.form-footer {
    font-size: 10px;
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: #444;
    text-decoration: underline;
}

.image-section {
    background-image: url('https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    flex: 1;
    padding: 20px;
    align-items: center;
    display: flex;
    justify-content: center;
}



.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.85);
    color: #4B2991;
    font-size: 1.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
}

.close-btn:hover {
    background: #e0e0ff;
}

.image-section {
    position: relative;
}

.close-section {
    display: none;
}

.form-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.logo {
    height: 100px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.help-btn {
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4B2991;
    font-size: 1.3rem;
    transition: background 0.2s;
}

.help-btn:hover {
    background: #e0e0ff;
}

.logo-container {
    display: none;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .logo {
        height: 100px;
        margin-top: 30px;
        box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
    }

    .close-section {
        display: flex;
    }

    body {
        background: none;
        background-size: cover;
        background-position: center;
        position: relative;
        background-image: url('https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg');
        flex-direction: column;
    }

    .logo-container {
        display: flex;
    }

    .image-section {
        display: none;
    }
}


.forgot-password {
    color: #666;
    text-decoration: underline;
    text-align: right;
    margin-bottom: 15px;
    font-size: small;
}

.forgot-password:hover {
    color: var(--main-btn);
    transition: color 0.3s ease;
}

.input-error {
    color: #d32f2f;
    font-size: 0.5em;
    margin-bottom: 2px;
    min-height: 18px;
}

#forgot-reset {
    cursor: pointer;
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

#forgot-modal,
#forgot-feedback {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#forgot-cancel {
    cursor: pointer;
    background: #eee;
    color: #6c63ff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
}

.forgot-style, 
#forgot-feedback {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 350px;
    margin: auto;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    text-align: left;
}
