:root {
    --netflix-red: #e50914;
    --input-bg: rgba(22, 22, 22, 0.7);
    --input-border: rgba(128, 128, 128, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: #000;
    color: #fff;
}

.login-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 100%), 
                url('https://assets.nflxext.com/ffe/siteui/vlv3/f841d4c7-10e1-40af-bca1-07e3f8eb14b4/web/CN-zh-20220502-popsignuptwoweeks-perspective_alpha_website_large.jpg');
    background-size: cover;
    background-position: center;
}

.header {
    padding: 25px 50px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.logo {
    height: 45px;
    width: auto;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background-color: rgba(0, 0, 0, 0.75);
    padding: 60px 68px 40px;
    width: 100%;
    max-width: 450px;
    border-radius: 4px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 28px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    height: 56px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    color: white;
    padding: 16px 20px 0;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: white;
    border-width: 2px;
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8c8c;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Floating Label Logic */
.input-group input:focus + label,
.input-group input:valid + label {
    top: 15px;
    font-size: 12px;
    font-weight: 700;
}

.login-button {
    background-color: var(--netflix-red);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
    transition: background-color 0.2s;
}

.login-button:hover {
    background-color: #c11119;
}

@media (max-width: 740px) {
    .login-wrapper {
        background: #000;
    }
    .header {
        padding: 20px;
    }
    .login-box {
        padding: 20px;
        background-color: transparent;
    }
}