/* =========================
   RESET / GLOBAL
========================= */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================
   SHARED / COMMON
========================= */
.container {
    width: 100%;
}

.row {
    width: 100%;
    display: flex;
    flex: 1;
    justify-content: center;
}

.card {
    box-shadow: 0 0 5px #c9c9c9;
    border-radius: 2rem;
}

.fade-up {
    opacity: 0;
    transform: translateY(60px);
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.float-img {
    opacity: 0;
    transform: translateY(50px);
    animation:
        fadeUp 0.8s ease forwards,
        float 3s ease-in-out infinite;
    animation-delay: 0s, 0.8s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* =========================
   LOGIN LAYOUT
========================= */
.login-main {
    display: flex;
    width: 100%;
    height: 100vh;
}

.login-container-info {
    width: 60%;
    background-image: url("../imgs/Wallpaper.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-container-input {
    width: 40%;
    display: inline-block;
}

.login-row-info {
    margin-top: 1rem;
}

/* =========================
   LOGIN CARDS
========================= */
.login-info-card {
    background-color: #f0f0f0;
    width: 45%;
    padding: 1rem;
    margin: auto;
}

.login-card {
    border-radius: 10px;
    height: 30rem;
    width: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50%;
}

/* =========================
   LOGIN FORM
========================= */
.login-col-input {
    margin: 10px 0;
    position: relative;
}

.input-group {
    position: relative;
    margin: 1.5rem 0;
}

.login-input {
    height: 3rem;
    width: 14rem;
    background-color: #f0f0f0;
    outline: none;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 0.5rem 0.3rem 0.5rem;
    transition: all 0.25s ease;
}

.login-input:hover {
    background-color: #e2e2e2;
}

.login-input:focus {
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #0B3D91;
}

.login-label {
    position: absolute;
    color: #a8a8a8;
    font-size: 14px;
    left: 0.6rem;
    top: 0.9rem;
    pointer-events: none;
    transition: all 0.25s ease;
    background: transparent;
}

.login-input:focus + .login-label,
.login-input:not(:placeholder-shown) + .login-label {
    top: -0.6rem;
    left: 0.4rem;
    font-size: 11px;
    color: #0B3D91;
    background: #fff;
    padding: 0 4px;
}

.login-btn {
    height: 3rem;
    width: 14rem;
    border-radius: 3rem;
    background-color: #51cf4f;
    box-shadow: #51cf4f 0 0 2px;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    box-shadow: 
        0 10px 25px rgba(81, 207, 79, 0.5),
        0 0 10px rgba(81, 207, 79, 0.6);
}

.login-btn:active {
    transform: scale(0.97);
    box-shadow: 0 5px 10px rgba(81, 207, 79, 0.4);
}

.login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transition: 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

/* =========================
   LOGIN TYPOGRAPHY
========================= */
.login-h1 {
    color: #fff;
    text-transform: uppercase;
    background-color: #a7f5a5;
    border-radius: 3rem;
    padding: 2rem;
}

.login-h2 {
    color: #0B3D91;
    text-transform: uppercase;
    text-align: center;
}

.login-p {
    color: #000;
    margin: 1rem;
}

.login-p-notice {
    color: #424242;
    margin: 1rem;
    font-size: 11px;
    margin-bottom: 3rem;
    text-align: center;
}

.login-p-userdata {
    text-align: center;
    margin: 2rem 0;
}

/* =========================
   LOGIN IMAGES
========================= */
.login-icon {
    width: 7rem;
    height: auto;
}

.login-logo {
    width: 30rem;
    height: auto;
}

/* =========================
   TASK LAYOUT
========================= */
.task-main {
    min-height: 100vh;
}

.task-container-info {
    width: 100%;
    background-image: url("../imgs/Wallpaper.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.task-container-app {
    width: 100%;
    display: inline-block;
    background-color: #ffffff;
}

.task-col-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

/* =========================
   TASK CARDS
========================= */
.task-info-card {
    background-color: #f0f0f0;
    width: 45%;
    padding: 1rem;
    margin: auto;
}

.task-card {
    border-radius: 10px;
    min-height: 38rem;
    width: 50rem;
    padding: 2rem 1.5rem;
    margin-top: 10%;
    background-color: #fff;
    margin-bottom: 15%;
}

/* =========================
   TASK FORM
========================= */
.task-col-input {
    margin: 10px 0;
    position: relative;
}

.task-input {
    height: 3rem;
    width: 14rem;
    background-color: #f0f0f0;
    outline: none;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 0.5rem 0.3rem 0.5rem;
    transition: all 0.25s ease;
}

.task-input:hover {
    background-color: #e2e2e2;
}

.task-input:focus {
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #0B3D91;
}

.task-label {
    position: absolute;
    color: #a8a8a8;
    font-size: 14px;
    left: 0.6rem;
    top: 0.9rem;
    pointer-events: none;
    transition: all 0.25s ease;
    background: transparent;
}

.task-input:focus + .task-label,
.task-input:not(:placeholder-shown) + .task-label {
    top: -0.6rem;
    left: 0.4rem;
    font-size: 11px;
    color: #0B3D91;
    background: #fff;
    padding: 0 4px;
}

.task-input-date {
    height: 3rem;
    width: 14rem;
    background-color: #f0f0f0;
    outline: none;
    border: none;
    border-radius: 0.5rem;
    padding: 0 0.75rem;
    transition: all 0.25s ease;
    color: #1f1f1f;
}

.task-input-date:hover {
    background-color: #e2e2e2;
}

.task-input-date:focus {
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #0B3D91;
}

.task-label-static {
    display: block;
    margin-bottom: 0.4rem;
    color: #0B3D91;
    font-size: 12px;
    font-weight: bold;
    margin-left: 0.7rem;
}

.task-btn {
    height: 3rem;
    width: 14rem;
    border-radius: 3rem;
    background-color: #51cf4f;
    box-shadow: #51cf4f 0 0 2px;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    font-weight: bold;
}

.task-btn:hover {
    box-shadow:
        0 10px 25px rgba(81, 207, 79, 0.5),
        0 0 10px rgba(81, 207, 79, 0.6);
}

.task-btn:active {
    transform: scale(0.97);
    box-shadow: 0 5px 10px rgba(81, 207, 79, 0.4);
}

.task-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transition: 0.5s;
}

.task-btn:hover::before {
    left: 100%;
}

/* =========================
   TASK TYPOGRAPHY
========================= */
.task-h1 {
    color: #0B3D91;
    text-transform: uppercase;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.5rem;
}

.task-h2 {
    color: #0B3D91;
    text-transform: uppercase;
    text-align: center;
}

.task-p {
    color: #000;
    margin: 1rem;
}

.task-p-userdata {
    text-align: center;
    margin: 2rem 0;
    color: #424242;
}

/* =========================
   TASK IMAGES
========================= */
.task-icon {
    width: 5rem;
    height: auto;
}

.task-logo {
    width: 10rem;
    height: auto;
}

/* =========================
   TASK LIST
========================= */
.task-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f7f7f7;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, opacity 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease, transform 0.35s ease;
}

.task-item:hover {
    background-color: #eeeeee;
    transform: translateY(-2px);
}

.task-item-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.task-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: #51cf4f;
    cursor: pointer;
}

.task-item-title {
    font-size: 14px;
    color: #1f1f1f;
    cursor: pointer;
    transition: all 0.25s ease;
}

.task-item-title-done {
    text-decoration: line-through;
    color: #8d8d8d;
    transform: scale(0.98);
}

.task-badge {
    background-color: #dbeafe;
    color: #0B3D91;
    padding: 0.35rem 0.7rem;
    border-radius: 2rem;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.25s ease;
}

.task-badge-done {
    background-color: #dcfce7;
    color: #2f8f2d;
}

.task-deadline {
    margin-right: 1.3rem;
}

.task-delete-btn {
    width: 3rem;
    height: 2rem;
    margin-left: 0.5rem;
    border: none;
    background-color: #ff4d4d;
    border-radius: 1rem;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.task-delete-btn:hover {
    transform: scale(1.2);
    background-color: #ff6e6e;
}

/* =========================
   TASK ANIMATIONS
========================= */
.task-item-updating {
    animation: taskPulse 0.35s ease;
}

.task-item-removing {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

@keyframes taskPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(81, 207, 79, 0);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 15px rgba(81, 207, 79, 0.35);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(81, 207, 79, 0);
    }
}

/* =========================
   ACTION BUTTONS / LINKS
========================= */
.logout-btn {
    position: absolute;
    margin: 3rem 4rem;
    right: 0;
    padding: 0.6rem 1rem;
    border-radius: 2rem;
    border: none;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.logout-btn:hover {
    background-color: #eeeeee;
    transform: translateY(-2px) scale(1.05);
}

.logout-btn:active {
    transform: scale(0.95);
}

.logout-icon {
    width: 2.5rem;
    height: auto;
}

.impressum-link {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    color: #0B3D91;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* =========================
   IMPRESSUM
========================= */
.impressum-main {
    min-height: 100vh;
}

.impressum-card {
    width: 50rem;
    min-height: auto;
    margin-top: 8%;
    margin-bottom: 10%;
    padding: 2.5rem 2rem;
}

.impressum-subtitle {
    color: #424242;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    text-align: center;
}

.impressum-section {
    background-color: #f7f7f7;
    border-radius: 1rem;
    padding: 1.2rem 1.2rem;
    margin-top: 1rem;
    transition: all 0.25s ease;
}

.impressum-section:hover {
    background-color: #eeeeee;
    transform: translateY(-2px);
}

.impressum-h2 {
    color: #0B3D91;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.impressum-p {
    color: #1f1f1f;
    font-size: 14px;
    line-height: 1.7;
}

.impressum-mail {
    color: #0B3D91;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.25s ease;
}

.impressum-mail:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.impressum-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.impressum-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   RESPONSIVE IMPRESSUM
========================= */
@media (max-width: 1200px) {
    .impressum-card {
        width: 42rem;
    }
}

@media (max-width: 992px) {
    .impressum-card {
        width: 90%;
        margin: 6rem auto 3rem auto;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .impressum-card {
        width: 92%;
    }

    .impressum-section {
        padding: 1rem;
    }

    .impressum-h2 {
        font-size: 0.95rem;
    }

    .impressum-p {
        font-size: 13px;
    }

    .impressum-subtitle {
        font-size: 0.9rem;
    }

    .impressum-btn {
        width: 100%;
        max-width: 14rem;
    }
}

@media (max-width: 576px) {
    .impressum-card {
        width: calc(100% - 1.5rem);
        margin-left: auto;
        margin-right: auto;
        padding: 1.5rem 1rem;
        border-radius: 1.25rem;
    }

    .impressum-section {
        padding: 0.9rem;
        border-radius: 0.9rem;
    }

    .impressum-h2 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .impressum-p {
        font-size: 12.5px;
        line-height: 1.6;
    }

    .impressum-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .impressum-card {
        padding: 1.25rem 0.85rem;
    }

    .impressum-h2 {
        font-size: 0.85rem;
    }

    .impressum-p {
        font-size: 12px;
    }

    .impressum-subtitle {
        font-size: 0.8rem;
    }
}

/* =========================
   RESPONSIVE GENERAL
========================= */
@media (max-width: 1200px) {
    .login-logo {
        width: 22rem;
    }

    .task-card {
        width: 42rem;
    }
}

@media (max-width: 992px) {
    .login-main,
    .task-main {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .login-container-info,
    .login-container-input,
    .task-container-info,
    .task-container-app {
        width: 100%;
    }

    .login-container-info,
    .task-container-info {
        padding: 2rem 1rem;
    }

    .login-card {
        margin: 2rem auto 3rem auto;
        width: 24rem;
        height: auto;
        padding: 2rem 1rem;
    }

    .login-info-card,
    .task-info-card {
        width: 80%;
    }

    .task-card {
        width: 90%;
        margin: 6rem auto 3rem auto;
        min-height: auto;
    }

    .login-logo {
        width: 18rem;
    }

    .task-logo {
        width: 8rem;
    }

    .logout-btn {
        margin: 1.5rem 1.5rem;
    }

    .back-btn {
        margin: 1.5rem 1.5rem;
        padding: 0.5rem 1rem;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .login-card,
    .task-card {
        width: 92%;
    }

    .login-info-card,
    .task-info-card {
        width: 92%;
    }

    .login-input,
    .login-btn,
    .task-input,
    .task-input-date,
    .task-btn {
        width: 100%;
    }

    .login-col-input,
    .task-col-input {
        width: 100%;
    }

    .login-card form,
    .task-card form {
        width: 100%;
    }

    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .task-item > div:last-child {
        width: 100%;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .task-delete-btn {
        margin-left: auto;
    }

    .task-h1 {
        font-size: 1.3rem;
    }

    .login-h2,
    .task-h2 {
        font-size: 1.2rem;
    }

    .login-p-notice,
    .login-p-userdata,
    .task-p,
    .task-p-userdata {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .login-container-info,
    .task-container-info {
        padding: 1.5rem 0.75rem;
    }

    .login-card,
    .task-card {
        width: calc(100% - 1.5rem);
        margin-left: auto;
        margin-right: auto;
        padding: 1.5rem 1rem;
        border-radius: 1.25rem;
    }

    .login-info-card,
    .task-info-card {
        width: calc(100% - 1.5rem);
    }

    .login-logo {
        width: 14rem;
    }

    .task-logo {
        width: 6rem;
    }

    .login-icon {
        width: 5rem;
    }

    .task-icon {
        width: 4rem;
    }

    .task-h1 {
        font-size: 1.1rem;
        margin-top: 0.75rem;
    }

    .login-input,
    .login-btn,
    .task-input,
    .task-input-date,
    .task-btn {
        width: 100%;
        min-width: 0;
    }

    .task-item {
        padding: 0.8rem;
    }

    .task-item-title {
        font-size: 13px;
    }

    .task-badge {
        font-size: 10px;
        padding: 0.3rem 0.6rem;
    }

    .task-deadline {
        margin-right: 0.5rem;
        font-size: 12px;
    }

    .logout-btn {
        margin: 1rem 1rem;
        padding: 0.45rem 0.75rem;
    }

    .logout-icon {
        width: 2rem;
    }

    .back-btn {
        margin: 1rem 1rem;
        padding: 0.45rem 0.9rem;
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .login-logo {
        width: 11rem;
    }

    .task-logo {
        width: 5rem;
    }

    .task-h1 {
        font-size: 1rem;
    }

    .login-p-notice,
    .login-p-userdata,
    .task-p,
    .task-p-userdata {
        font-size: 0.85rem;
    }

    .task-item-left {
        gap: 0.5rem;
    }

    .task-delete-btn {
        width: 2.5rem;
        height: 1.8rem;
        font-size: 12px;
    }
}