* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
}

/* Split Login Layout (Desktop) */
.split-login {
    display: flex;
    height: 100vh;
    width: 100%;
    background: #ffffff;
}

/* Links: Bild Panel */
.image-panel {
    flex: 0 0 68%;
    padding: 16px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.bg-image.active {
    opacity: 1;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Photo Credit */
.photo-credit {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
}

.photo-credit .photographer-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 400;
}

/* Rechts: Login Panel */
.login-panel {
    flex: 0 0 32%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
}

/* Logo im Bild */
.image-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.image-logo img {
    width: 180px;
    height: auto;
}

.login-panel .login-container {
    width: 100%;
    max-width: 400px;
}

.login-panel .login-form h2 {
    text-align: left;
}

.login-panel .forgot-password {
    text-align: left;
}

/* Mobile Layout */
.mobile-login {
    display: none;
}

/* Hide desktop on mobile, show mobile layout */
@media (max-width: 768px) {
    .split-login {
        display: none;
    }

    .mobile-login {
        display: block;
    }

    .mobile-login .left-panel {
        width: 100%;
        height: 100vh;
        background: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    .mobile-login .main-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 400px;
    }

    .mobile-login .login-container {
        background-color: #fff;
        border-radius: 20px;
        padding: 30px 20px;
        width: 100%;
        max-width: 400px;
    }
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}
.login-container {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease;
}

.login-form h2 {
    font-size: 32px;
    margin: 10px 0;
    color: #1d1d1f;
    font-weight: 600;
    text-align:center;
    margin-bottom:30px;
    letter-spacing: -0.5px;
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* Subtile Blur-Animation für Premium-Gefühl */
@supports (backdrop-filter: blur(10px)) {
    .login-form h2 {
        animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards,
                  blurIn 0.6s ease-out forwards;
        animation-delay: 0.3s;
        filter: blur(8px);
    }

    @keyframes blurIn {
        to {
            filter: blur(0);
        }
    }
}
.error {
    color: #ff4136;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    background-color: #ffefef;
    padding: 10px;
    border-radius: 5px;
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}
.success {
    color: #25b013;
    font-size: 15px;
    margin-bottom: 15px;
    text-align: left;
    background-color: #e1ffdd;
    padding: 10px;
    border-radius: 5px;
}
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display:none;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    transition: color 0.3s ease;
}
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="tel"] {
    border: 1px solid #dedede;
    border-radius: 12px;
    padding: 15px;
    width: 100%;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #0050e7;
    box-shadow: 0 0 0 3px rgba(0, 80, 231, 0.1);
}
.form-group:focus-within label {
    color: #0050e7;
}
.login-button {
    color: #FFFFFF;
    border-radius: 8px;
    font-size: 17px;
    font-weight: regular;
    background-color: #0B1D41;
    padding: 16px 16px;
    text-align: center;
    width: 100%;
    cursor: pointer;
    border: none;
    letter-spacing: 0.25px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}
.login-button:hover {
    background-color: #303030;
}
.login-button:active {
    transform: scale(0.98);
}
.logo-container {
    margin-top: 30px;
    text-align: center;
}
.logo-container img {
    width: 120px;
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}
.logo-container img:hover {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .split-screen-container {
        flex-direction: column;
    }

    .left-panel {
        flex: none;
        width: 100%;
        height: 100vh;
    }

    .right-panel {
        display: none;
    }

    .login-container {
        padding: 30px 20px;
    }

    .logo-container img {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px;
    }

    .login-form h2 {
        font-size: 28px;
    }
}

.forgot-password, .forgot-password-link{
    font-size: 16px;
    text-align: center;
    margin-top: 20px;
    color: #acacac;
    text-decoration: none;
}


.forgot-password, .forgot-password-link:hover{

    color: #0050E7;

}

/* Security Lock Animation */
.security-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lock-icon {
    animation: lockClose 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lock-shackle {
    animation: shackleClose 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: top center;
}

.lock-body {
    animation: bodyPulse 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.lock-dot {
    opacity: 0;
    animation: dotAppear 0.3s ease-out 0.5s forwards;
}

.secure-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    animation: textFadeIn 0.5s ease-out 0.7s forwards;
    letter-spacing: 0.5px;
}

@keyframes lockClose {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes shackleClose {
    0% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes bodyPulse {
    0%, 100% {
        fill: white;
    }
    50% {
        fill: #4CAF50;
    }
}

@keyframes dotAppear {
    to {
        opacity: 1;
    }
}

@keyframes textFadeIn {
    to {
        opacity: 1;
    }
}

/* Form field fade out animation */
@keyframes fadeOutScale {
    0% {
        opacity: 1;
        transform: scale(1);
        max-height: 100px;
    }
    50% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
        max-height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
}

/* Logging in state */
.login-form.logging-in .login-button {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Title fade out animation */
@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
        height: 0;
        margin: 0;
        overflow: hidden;
    }
}

/* Mesh Gradient Animations */
@keyframes meshGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 25%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 75%;
    }
}

@keyframes meshMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(8%, -8%) rotate(8deg);
    }
    50% {
        transform: translate(-6%, 6%) rotate(-6deg);
    }
    75% {
        transform: translate(6%, -4%) rotate(4deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes orbitalMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(10%, -8%) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-5%, 10%) rotate(180deg) scale(0.95);
    }
    75% {
        transform: translate(8%, -5%) rotate(270deg) scale(1.05);
    }
}

@keyframes waveMotion {
    0%, 100% {
        transform: translate(0, 0) skewX(0deg);
        opacity: 1;
    }
    33% {
        transform: translate(-15%, 5%) skewX(5deg);
        opacity: 0.8;
    }
    66% {
        transform: translate(15%, -5%) skewX(-5deg);
        opacity: 0.9;
    }
}

@keyframes deepDrift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-3%, 3%) rotate(10deg);
    }
}

@keyframes pulseAccent {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.6;
        transform: scale(1.15) rotate(5deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.9) rotate(-3deg);
    }
    75% {
        opacity: 0.7;
        transform: scale(1.1) rotate(3deg);
    }
}

/* Pexels Gallery Styles */
.pexels-gallery {
    background: #0A1D41;
}

.pexels-image-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pexels-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.pexels-image.active {
    opacity: 1;
}

.pexels-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 29, 65, 0.1) 0%,
        rgba(10, 29, 65, 0.2) 50%,
        rgba(10, 29, 65, 0.6) 100%
    );
    pointer-events: none;
}

.pexels-credit {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 6px;
}

.photographer-name {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 400;
}