@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700&display=swap');

:root {
    --tan: #fdfdfd;
    --accent: #4285f4;
    --accent-hover: #2b6fe4;
    --accent-dark: #183264;
    --cloudwhite: #f4fafc;
    --endchat: #ea4335;
    --endchat-hover: #c93428;
    --endchat-dark: #8b231f;
    --dark-text: #202124;
    --light-text: #5f6368;
    --gray: #77777a;
    --jetblack: #0e0e10;
    --online: #99d590;
    --white: #ffffff;
    --border-color: #dadce0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 4px 12px rgba(66, 133, 244, 0.3);
    --shadow-accent-light: 0 4px 12px rgba(66, 133, 244, 0.2);
    --border-radius-sm: 10px;
    --border-radius-md: 16px;
    --border-radius-lg: 25px;
    --border-radius-xl: 50px;
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
    --font-family: 'Nunito Sans', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--cloudwhite);
}

.login-box {
    background: var(--tan);
    width: 400px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
    max-height: auto;
}

.login-box h2 {
    color: var(--accent);
    font-weight: 700;
}

.toggle-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 40px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: var(--transition-base);
    border-radius: 40px;
}

.slider::before {
    position: absolute;
    content: "";
    height: 32px;
    width: 32px;
    left: 4px;
    bottom: 4px;
    background-color: var(--white);
    transition: var(--transition-base);
    border-radius: 50%;
}

.switch input:checked+.slider {
    background-color: var(--accent);
}

.switch input:checked+.slider::before {
    transform: translateX(160px);
}

#userpassfield {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    text-align: left;
}

#email,
#password,
#Usernameinput,
#Emailinput,
#Passinput {
    width: 170%;
    height: 35px;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 8px 10px;
    outline: none;
}

#email:focus,
#password:focus,
#Usernameinput:focus,
#Emailinput:focus,
#Passinput:focus {
    border-color: var(--accent);
}

.login-btn,
#registerBtn {
    height: 40px;
    width: 140px;
    background-color: var(--accent);
    color: var(--tan);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    border: none;
    margin: 20px;
}

.login-btn:hover,
#registerBtn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.03);
}

#linebox {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.line {
    width: 70px;
    height: 1px;
    background: var(--accent);
}

.oauth-btn {
    width: 100%;
    height: 45px;
    background: var(--white);
    color: #3c4043;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-fast);
}

.oauth-btn img {
    width: 20px;
    height: 20px;
}

.oauth-btn:hover {
    background: #f8f9fa;
    box-shadow: var(--shadow-md);
}

.oauth-btn:active {
    background: #f1f3f4;
    box-shadow: none;
}

.error {
    color: var(--endchat);
    font-size: 14px;
    display: none;
}

#logov {
    width: 50px;
    height: 50px;
    transform: rotate(-30deg);
}

#headerbox {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-right: 50px;
}

#signuppage {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    text-align: left;
}
