/* General Styles */

* {
    box-sizing: border-box; /* Just For Test */
    transition: all 500ms ease-in-out;
}

:root {
    /* Global */
    --raspi-dash-login-container: linear-gradient(to right, hsl(37, 97%, 70%), hsl(329, 70%, 58%));

    --raspi-dash-switch-theme: linear-gradient(to right, hsl(210, 78%, 56%), hsl(146, 68%, 55%)); /* Dark Theme Colors */
    --raspi-dash-theme-bg: hsl(230, 17%, 14%);
    --raspi-dash-theme-pattern: hsl(232, 19%, 15%);
    --raspi-dash-theme-card-bg: hsl(228, 28%, 20%);
    --raspi-dash-theme-text: hsl(228, 34%, 66%);
    --raspi-dash-theme-text-secondary: hsl(0, 0%, 100%);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem; /* 14px */
    background-color: var(--raspi-dash-theme-bg);
    color: var(--raspi-dash-theme-text-secondary);
}

.body_theme_light {
    /* Light Switch Color */
    --raspi-dash-switch-theme: hsl(230, 22%, 74%); /* Light Theme Colors */
    --raspi-dash-theme-bg: hsl(0, 0%, 100%);
    --raspi-dash-theme-pattern: hsl(225, 100%, 98%);
    --raspi-dash-theme-card-bg: hsl(227, 47%, 96%);
    --raspi-dash-theme-text: hsl(228, 12%, 44%);
    --raspi-dash-theme-text-secondary: hsl(230, 17%, 14%);
}

.container {
    max-width: 75rem; /* 1200px */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin: auto;
}

h1, h2, h3 {
    color: var(--raspi-dash-theme-text-secondary);
}

p {
    color: var(--raspi-dash-theme-text);
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 2.5rem;
    padding-bottom: 0.5rem;
}

/* Headings Area */
.header__heading-area {
    padding-bottom: 0.3125rem;
    border-bottom: 0.125rem solid var(--raspi-dash-theme-card-bg);
}

.heading-area__title {
    font-size: 2rem;
    margin: 0;
}

/* Media Query für mobile Geräte */
@media (max-width: 600px) {
    .heading-area__title {
        font-size: 1.28rem;
}
}

.heading-area__paragraph {
    font-size: 1.06rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Switch Area */
.header__switch-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.9375rem;
    padding-bottom: 0.9375rem;
}

.switch-area__paragraph {
    font-weight: bold;
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 4.1875rem;
    height: 2.125rem;
    border-radius: 3.125rem;
    background-color: hsl(230, 22%, 74%);
    background-image: var(--raspi-dash-switch-theme);
    overflow: hidden;
    transition: opacity 250ms ease-in-out;
}

.toggle-switch__check {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.toggle-switch__circle {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 1.5625rem;
    height: 1.5625rem;
    border-radius: 50%;
    background-color: var(--raspi-dash-theme-pattern);
    cursor: pointer;
    transition: left 200ms ease-in-out;
}

.toggle-switch__check:checked~.toggle-switch__circle {
    left: 74%;
}

.login-wrapper {
    grid-row: 2; /* Login-Box bleibt im zweiten Bereich */
    display: grid;
    place-items: center; /* Zentriert die Login-Box sowohl horizontal als auch vertikal */
    background-color: var(--raspi-dash-theme-bg); /* Hintergrundfarbe des Wrappers */
    margin-top: 50px;
}

.login-container {
    background-color: var(--raspi-dash-theme-card-bg);
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 350px;
    padding: 30px;
    text-align: center;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-image: var(--raspi-dash-login-container);
    border-radius: 10px 10px 0 0;
}

.login-container input {
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background-color: #f87171;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-container button:hover {
    background-color: #ff9a94;
}

.remember-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    margin-bottom: 20px;
}
.remember-container input {
    margin-right: 5px; 
}

.remember-container label {
    font-size: 14px;
    color: var(--raspi-dash-theme-text-secondary);
}

.login-container--login::before {
    background-image: var(--raspi-dash-login-container);
}

.error {
    color: red;
    font-size: 14px;
}

@media (max-width: 600px) {
    .login-wrapper {
        margin-top: 100px;
    }
}