/*
 * Programme: MultiMediaTechnology – FH Salzburg
 * Course: Multimediaprojekt 1
 * Author: Olivia Schmidbauer
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Arial, sans-serif;
    color: #2a0a3a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 15% 0%,   rgba(218, 72, 248, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 88% 98%,  rgba(103, 40, 215, 0.17) 0%, transparent 48%),
        radial-gradient(ellipse at 55% 45%,  rgba(183, 103, 236, 0.08) 0%, transparent 55%),
        #faf0ff;
}

.topnav {
    height: 58px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: linear-gradient(135deg, #2c0a50 0%, #1a0434 100%);
    flex-shrink: 0;
}

.nav-logo-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.15s;
}

.nav-brand:hover { opacity: 1; }

.nav-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-back {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    transition: background 0.15s, color 0.15s;
}

.nav-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-impressum {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.25) !important;
    text-decoration: none;
    padding: 0.4rem 0.6rem !important;
    border-radius: 2rem;
    transition: color 0.15s;
}

.nav-impressum:hover {
    color: rgba(255, 255, 255, 0.5) !important;
    background: transparent !important;
}


.auth-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1.5rem;
}


.auth-box {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(150, 87, 240, 0.12);
    border-radius: 1.4rem;
    padding: 2.4rem 2.6rem;
    width: 24rem;
    max-width: 100%;
    box-shadow: 0 4px 24px rgba(150, 87, 240, 0.1), 0 1px 4px rgba(0, 0, 0, 0.05);
}

.auth-box.wide {
    width: 38rem;
    max-width: 100%;
}

.auth-logo {
    display: block;
    height: 52px;
    width: auto;
    margin: 0 0 1.6rem;
    filter: invert(47%) sepia(95%) saturate(1200%) hue-rotate(222deg) brightness(85%) contrast(110%);
}

.auth-box h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #2a0a3a;
    letter-spacing: -0.5px;
    margin-bottom: 1.8rem;
}


.auth-box label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #574870;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}


.auth-box input,
.auth-box textarea,
.auth-box select {
    width: 100%;
    padding: 0.72rem 1rem;
    margin-bottom: 1.2rem;
    border-radius: 0.85rem;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    font-family: inherit;
    font-size: 0.92rem;
    color: #2a0a3a;
    background: rgba(255, 255, 255, 0.95);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-box input:focus,
.auth-box textarea:focus,
.auth-box select:focus {
    border-color: #9657f0;
    box-shadow: 0 0 0 3px rgba(150, 87, 240, 0.12);
}

.auth-box textarea { resize: vertical; }


.auth-box fieldset {
    border: 1.5px solid rgba(150, 87, 240, 0.16);
    border-radius: 0.85rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    background: rgba(150, 87, 240, 0.03);
}

.auth-box fieldset legend {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0 0.4rem;
    color: #9657f0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}


.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    cursor: pointer;
    color: #251548;
    text-transform: none;
    letter-spacing: 0;
}

.checkbox-label:last-child { margin-bottom: 0; }

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    accent-color: #9657f0;
}

/* Primary button */

.auth-box button[type="submit"],
.auth-box button {
    width: 100%;
    padding: 0.85rem;
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #9657f0 0%, #713fce 100%);
    color: white;
    border: none;
    border-radius: 0.85rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.93rem;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(150, 87, 240, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.auth-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(150, 87, 240, 0.45);
}


.auth-box a {
    color: #9657f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

.auth-box a:hover { text-decoration: underline; }

.auth-box p {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0.4rem 0;
}

.auth-box hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 1.4rem 0;
}


.back-link {
    display: inline-block;
    margin-top: 1.1rem;
    font-size: 0.88rem;
    color: #9657f0;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover { text-decoration: underline; }


.error {
    background: rgba(220, 53, 69, 0.07);
    color: #b91c1c;
    padding: 0.7rem 0.95rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(220, 53, 69, 0.18);
}


.location-wrapper {
    position: relative;
    margin-bottom: 1.2rem;
}

.location-wrapper input {
    margin-bottom: 0;
}

#suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: white;
    border: 1.5px solid rgba(150, 87, 240, 0.18);
    border-radius: 0.85rem;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.suggestion-item {
    padding: 0.62rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #2a0a3a;
}

.suggestion-item:last-child { border-bottom: none; }

.suggestion-item:hover {
    background: rgba(150, 87, 240, 0.07);
}


a:focus-visible,
button:focus-visible {
    outline: 2px solid #9657f0;
    outline-offset: 2px;
}


@media (max-width: 480px) {
    .topnav { padding: 0 1rem; }
    .auth-content { padding: 1rem; }
    .auth-box { padding: 1.8rem 1.4rem; }
}
