.image_form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    margin: -24px auto 24px auto;
    max-width: 40%;
    padding: 20px 20px;
    border: 2px solid hsl(240, 7%, 29%);
    border-radius: 20px;
    background: #829CBC;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.image_form .form_title {
    grid-column: 1;
    align-self: center;
    font-weight: 300;
    font-size: x-large;
    color: white;
}

.image_form .form_toggle {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.chevron_icon{
    width: 36px;
    height: 36px;
    display: block;
    pointer-events: none;
    background-image: url("/media/right-chevron.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform .2s ease;
}

.chevron[aria-expanded="true"] .chevron_icon {
    transform: rotate(90deg);
}

#addImageForm {
    grid-column: 1 / span 2;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}

#addImageForm .form_body {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 20px;
    overflow: hidden;
}

#addImageForm.is-open {
    grid-template-rows: 1fr;
}

.image_form .form_label {
    grid-column: 1 / span 2;
    font-size: 16px;
    color: white;
}

.image_form .form_element{
    grid-column: 1 / span 2;
    width: 100%;
    box-sizing: border-box;
    margin-top: -10px;
    height: 36px;
    font-size: 16px;
    border: 2px solid #D3DAD9;
    border-radius: 10px;
    background: white;
    color: black;
}

.image_form .file_upload {
    grid-column: 1 / span 2;
    width: 100%;
    box-sizing: border-box;
    margin-top: -10px;
    font-size: 16px;
    background: transparent;
    color: white;
}

.image_form .btn {
    grid-column: 1 / span 2;
    width: 100%;
    margin-top: 20px;
    padding: 10px 20px;
    border: 0;
    border-radius: 20px;
    background: #1D3461;
    color: white;
    font-size: medium;
    text-align: center;
    cursor: pointer;
}

.image_form .btn:hover {
    background-color: #2E5095;
}

.auth_container {
    display: grid;
    place-items: center;
    width: 100%;
    background: transparent;
}

.auth_card {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 20px;
    width: 400px;
    padding: 24px;
    border-radius: 20px;
    background: #829CBC;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.toggle_wrapper {
    display: grid;
    gap: 16px;
}

.toggle_wrapper input[type="radio"] {
    display: none;
}

.toggle_buttons {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    background: lightgray;
}

.toggle_buttons label {
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 400;
    background: transparent;
    z-index: 1;
    color: white;
    transition: background 0.8s, color 0.2s;
}

.toggle_buttons .slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #2274a5;
    border-radius: 12px;
    z-index: 0;
    transition: transform 0.3s ease;
}

.toggle_wrapper input#signup:checked ~ .toggle_buttons .slider {
    transform: translateX(100%);
}

.toggle_wrapper input#signup:checked ~ .auth_forms .auth_inner {
    transform: translateX(-50%);
}

.auth_forms {
    overflow: hidden;
    width: 100%;
    position: relative;
    height: auto;
}

.auth_inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 200%;
    transition: transform 0.3s ease-in-out;
}

.auth_form {
    display: grid;
    grid-auto-rows: auto;
    justify-items: center;
    align-content: start;
    gap: 16px;
    padding: 16px;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
}

.auth_form input[type="text"], .auth_form input[type="password"] {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 12px;
    font-size: medium;
}

.auth_form button {
    align-self: end;
    width: 100%;
    padding: 8px;
    font-size: medium;
    border: 0;
    border-radius: 10px;
    background: #1D3461;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth_form button:hover {
    background: #2E5095;
}