:root {
    --bg-dark: #000000;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --border: #4a4a4a;
    --border-focus: #ffffff;
    --error: #ff4d4d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 320px; /* Tidal login box is narrow */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand {
    margin-bottom: 60px;
    margin-top: 20px;
}

.auth-box {
    width: 100%;
    text-align: left;
}

.title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

/* Floating Label Magic */
.input-group {
    position: relative;
    margin-bottom: 32px;
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-main);
    font-size: 16px;
    padding: 24px 0 8px 0; /* Space for the label to float into */
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--border-focus);
}

.input-group label {
    position: absolute;
    top: 20px;
    left: 0;
    font-size: 16px;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.2s ease all;
}

/* When input is focused, OR when input has text (valid matches the "required" attribute state if not empty) */
.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.input-group input:focus ~ label {
    color: var(--text-main);
}

/* The Button */
.auth-btn {
    width: 100%;
    padding: 16px;
    background: var(--text-main);
    color: var(--bg-dark);
    border: none;
    border-radius: 9999px; /* Pill shape */
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.2s ease;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: scale(1.02);
    background: #e6e6e6;
}

.auth-btn:active {
    transform: scale(0.98);
}

.auth-btn:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
}

.auth-footer a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.auth-footer a:hover {
    border-color: var(--text-main);
}
