@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #E50914;
    --bg-color: #141414;
    --text-color: #FFFFFF;
    --gray-light: #B3B3B3;
    --gray-dark: #333333;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.4;
    overflow-x: hidden;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #141414;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input {
    font-family: inherit;
}

/* Authentication Forms Base */
.auth-page {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://assets.nflxext.com/ffe/siteui/vlv3/f841d4c7-10e1-40af-bcae-07a3f8cf141a/c3977c03-f308-4e2d-a28a-7e3768b55e88/US-en-20220502-popsignuptwelve-perspective_alpha_website_medium.jpg');
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-container {
    background-color: rgba(0, 0, 0, 0.75);
    padding: 60px 68px 40px;
    width: 100%;
    max-width: 450px;
    border-radius: 4px;
    min-height: 500px;
}

.auth-container h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group input {
    width: 100%;
    height: 50px;
    background: #333;
    border: none;
    border-radius: 4px;
    padding: 0 20px;
    color: white;
    font-size: 16px;
}

.form-group input::placeholder {
    color: #8c8c8c;
}

.form-group .error-msg {
    color: #e87c03;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    margin-top: 24px;
    transition: background 0.2s;
}

.auth-btn:hover {
    background-color: #ff0a16;
}

.auth-help {
    display: flex;
    justify-content: space-between;
    color: #b3b3b3;
    font-size: 13px;
    margin-top: 10px;
}

.auth-switch {
    margin-top: 40px;
    color: #737373;
    font-size: 16px;
}

.auth-switch a {
    color: white;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton loader base */
.skeleton {
    background: linear-gradient(90deg, #222 25%, #333 50%, #222 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
