body {
    display: flex;
    flex-direction: column;
    min-height: 100vw;
}

h2 {
    color: var(--base-color-white);
    font-size: 30px;
    text-align: center;
    padding: 10px 0 20px;
    width: fit-content;
}

.main{
    display: flex;
    justify-content: center;
    /* align-items: start; */
    padding: var(--base-size-x6);
    min-height: 600px;
    flex:1;
}

.form-box {
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden ;
    column-gap: 10px;
    width: 100%;
    max-width: 500px;
}

.register{
    position: absolute;
    right: -520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    row-gap: var(--base-size-x2);
    background: linear-gradient(90deg, rgba(255,113,0,1) 0%, rgba(114,121,9,1) 35%, rgba(0,212,255,1) 100%);
    border-radius: var(--base-border-radius-x3);
    padding: var(--base-size-x6);
    transition: .2s ease-in-out;
}
.error-message-login{
    color: red;
    font-weight: 500;
}
.login {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    row-gap: var(--base-size-x2);
    background: linear-gradient(90deg, rgba(255,113,0,1) 0%, rgba(114,121,9,1) 35%, rgba(0,212,255,1) 100%);
    border-radius: var(--base-border-radius-x3);
    padding: var(--base-size-x6);
    transition: .2s ease-in-out;
}
#loginForm{
    display: flex;
    flex-direction: column;
    row-gap:var(--base-size-x2) ;
}

#registerForm{
    display: flex;
    flex-direction: column;
    row-gap:var(--base-size-x2) ;
}

.center {
    display: flex;
    justify-content: center;
    color: var(--base-color-white);
}

.placeholder {
    height: var(--base-size-x6);
    outline: none;
    border: none;
    margin-left: var(--base-size);
    width: 100%;
    border-radius: var(--base-border-radius-x3);
}

.ph-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 0 0 var(--base-size-x3);
    border-radius: var(--base-border-radius-x3);
    background-color: var(--base-color-white);
}

.fullName {
    display: flex;
    width: 100%;
    flex-direction: row;
    column-gap: var(--base-size-x2);
}

.remember-and-terms {
    display: flex;
    justify-content: space-between;
    color: var(--base-color-white);
    flex-direction: row-reverse;
}

a {
    font-weight: bold;
    text-decoration: none;
    color: var(--base-color-white);
}

@media (max-width: 768px) {
    .main{
        padding: var(--base-size-x2);
    }
    .auth-box {
        padding: var(--base-size-x4);
    }
    h2 {
        font-size: 24px;
    }
}

/* Shared Numteach authentication surface */
body { min-height: 100vh; }
.main { min-height: 0; padding: 32px 16px 72px; align-items: flex-start; }
.form-box { max-width: 480px; overflow: visible; display: block; }
.login, .register { position: static; width: 100%; background: transparent; padding: 0; box-shadow: none; color: var(--base-text-color); }
.register, .form-box.register-open .login { display: none; }
.form-box.register-open .register { display: flex; }
.login h2, .register h2 { color: var(--base-text-color); font-size: 28px; padding: 0; }
.login .center, .register .center { color: var(--base-text-color); justify-content: flex-start; }
.login a, .register a { color: var(--base-color-orange); padding: 0; }
.ph-container { border: 1px solid var(--base-color-grey-medium); padding: 0 12px; min-width: 0; }
.ph-container:focus-within { border-color: var(--base-color-orange); }
.placeholder { min-width: 0; height: 48px; margin-left: 0; background: transparent; padding: 10px; }
.fullName { flex-wrap: wrap; row-gap: 12px; }
.fullName .ph-container { flex: 1 1 170px; }
.login form button, .register form button { min-height: 48px; }
.error-message-login, #error-message-register { color: var(--base-error-text); min-height: 1.4em; font-size: 14px; }
