html, p, h1, h2, h3, nav a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--main-font);
}

h1, h2, h3 {
    font-weight: 700;
}

#auth-main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    flex-grow: 1;
    height: auto;
    padding: 40px 20px;
}

.auth-container {
    display: flex;
    align-items: stretch;

    height: 600px;
    width: 100%;
    max-width: 1000px;

    background-color: var(--bg-card);
    padding: 20px;
    gap: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(85, 34, 166, 0.18);
}

.auth {
    display: flex;
    flex-direction: column;
    flex: 1.1;
    padding: 20px 40px;
    margin: 0;
    border-right: 2px solid var(--iris-purple); 
    overflow-y: auto;
}

.auth-image {
    flex: 1;
    height: 100%;
    position: relative; 
}

.auth-image img {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 12px;
}

.auth h2, .auth p {
    margin: 0;
    padding: 10px 0;
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-main);
    text-underline-offset: 5px;   
    text-decoration: underline;
    text-decoration-color: var(--dark-iris-purple);  
    font: inherit;
    cursor: pointer;
}

.link-btn:hover {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-header);
    text-decoration: none; 
}

#security-question {
    font-family: var(--main-font);
    color: var(--text-main);
    font-size: var(--font-size-md);
    line-height: 1.6; 
}

#forgot-password-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 900px) {
    body {
        display: flex;
        min-height: 100vh;
        margin: 0;
        flex-direction: column;
    }

    #login-main {
        height: auto;
        flex-grow: 1; 
    }
    
    .auth-container {
        flex-direction: column;
        height: auto;
        max-height: none;
        overflow-y: auto;
        align-items: center;
    }

    .auth {
        flex: 1;
        width: 100%;
        border-right: none;
        border-bottom: 2px solid var(--iris-purple); 
        overflow-y: visible; 
        padding: 20px 30px;
    }
}