/* Netflix Clone CSS */
/* All assets are local - no external dependencies */

/* Netflix Font - Bebas Neue */
@font-face {
    font-family: 'Bebas Neue';
    src: url('../fonts/BebasNeue.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #000;
}

/* Fallback Netflix Sans with similar font */
@font-face {
    font-family: 'Netflix Sans';
    src: local('Helvetica Neue'), local('Helvetica'), local('Arial');
    font-weight: 400;
}

/* ========== LOGIN PAGE ========== */
.login-wrapper {
    min-height: 100vh;
    background-color: #000;
    position: relative;
    display: flex;
    flex-direction: column;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    overflow: hidden;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(12, 150px);
    grid-auto-rows: 225px;
    gap: 8px;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(15deg);
    opacity: 0.5;
}

.poster-grid img {
    width: 150px;
    height: 225px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .poster-grid {
        grid-template-columns: repeat(10, 100px);
        grid-auto-rows: 150px;
        gap: 6px;
        opacity: 0.4;
    }
    
    .poster-grid img {
        width: 100px;
        height: 150px;
    }
}

.login-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.8) 0,
        transparent 60%,
        rgba(0,0,0,0.8) 100%
    );
}

/* Header */
.login-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    padding: 0 45px;
    display: flex;
    align-items: center;
    z-index: 10;
}

@media (max-width: 768px) {
    .login-header {
        height: 70px;
        padding: 0 20px;
    }
}

.logo-link {
    text-decoration: none;
}

.netflix-logo-svg {
    height: 45px;
    width: auto;
}

/* Netflix Logo */
.netflix-logo {
    font-family: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #e50914;
    text-decoration: none;
    letter-spacing: 4px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .netflix-logo {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
}

/* Login Form Container */
.login-body {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 40px;
}

@media (max-width: 768px) {
    .login-body {
        padding: 70px 0 20px;
        align-items: flex-start;
    }
}

.login-form-container {
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 450px;
    min-height: auto;
    padding: 48px 68px 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .login-form-container {
        background-color: transparent;
        padding: 60px 20px 40px;
        min-height: auto;
        border-radius: 0;
        max-width: 100%;
    }
}

.login-form-container h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .login-form-container h1 {
        font-size: 26px;
        margin-bottom: 20px;
    }
}

/* Input Fields - Netflix Style */
.input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.input-wrapper:last-of-type {
    margin-bottom: 0;
}

.nf-input {
    background: rgba(51, 51, 51, 0.7);
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    height: 50px;
    line-height: 50px;
    padding: 16px 20px 0;
    width: 100%;
    transition: all 0.2s;
}

.nf-input:focus {
    background: rgba(69, 69, 69, 0.9);
    border-color: #fff;
    outline: none;
}

@media (max-width: 768px) {
    .nf-input {
        font-size: 16px;
        height: 48px;
    }
}

.nf-label {
    color: #8c8c8c;
    font-size: 16px;
    left: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.1s ease;
    pointer-events: none;
}

.nf-input:focus + .nf-label,
.nf-input:not(:placeholder-shown) + .nf-label {
    color: #8c8c8c;
    font-size: 11px;
    top: 7px;
    transform: none;
}

/* Error state */
.input-wrapper.error .nf-input {
    border-bottom: 2px solid #eb3942;
}

.input-error {
    color: #eb3942;
    font-size: 13px;
    margin-top: 6px;
    padding: 0 3px;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.input-error::before {
    content: '⊗';
    font-size: 14px;
    line-height: 1;
}

/* Sign In Button */
.btn-signin {
    background: #e50914;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin: 24px 0 12px;
    min-height: 48px;
    padding: 16px;
    width: 100%;
    transition: background 0.2s;
}

.btn-signin:hover {
    background: #c11119;
}

.btn-signin:disabled {
    opacity: 0.5;
    cursor: default;
}

@media (max-width: 768px) {
    .btn-signin {
        font-size: 15px;
    }
}

/* OR Divider */
.login-form-divider {
    align-items: center;
    color: #737373;
    display: flex;
    font-size: 13px;
    margin: 8px 0 16px;
    text-transform: uppercase;
}

.login-form-divider::before,
.login-form-divider::after {
    background: #737373;
    content: '';
    flex: 1;
    height: 1px;
}

.login-form-divider span {
    padding: 0 16px;
}

/* Remember & Help */
.login-form-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 10px;
}

.login-remember {
    display: flex;
    align-items: center;
    color: #b3b3b3;
}

.login-remember input {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #737373;
    cursor: pointer;
}

.login-remember input:checked {
    accent-color: #e50914;
}

.login-help-link {
    color: #b3b3b3;
    text-decoration: none;
}

.login-help-link:hover {
    text-decoration: underline;
}

/* Sign Up Link */
.login-signup {
    color: #737373;
    font-size: 16px;
    margin-top: 16px;
}

.login-signup a {
    color: #fff;
    text-decoration: none;
}

.login-signup a:hover {
    text-decoration: underline;
}

/* reCAPTCHA notice */
.recaptcha-notice {
    color: #8c8c8c;
    font-size: 13px;
    margin-top: 16px;
    line-height: 1.4;
}

.recaptcha-notice a {
    color: #0071eb;
    text-decoration: none;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

/* Login Footer */
.login-footer {
    position: relative;
    z-index: 5;
    background: rgba(0, 0, 0, 0.75);
    padding: 30px 45px;
    margin-top: auto;
}

.login-footer-content {
    max-width: 1000px;
    margin: 0 auto;
    color: #737373;
}

.footer-question {
    color: #737373;
    font-size: 16px;
    margin-bottom: 30px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #737373;
    font-size: 13px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-footer {
        padding: 20px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .footer-links a {
        font-size: 11px;
    }
    
    .footer-question {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

.footer-lang {
    margin-top: 20px;
}

.language-picker {
    background: transparent;
    border: 1px solid #737373;
    border-radius: 4px;
    color: #737373;
    font-size: 16px;
    padding: 8px 32px 8px 36px;
    cursor: pointer;
    appearance: none;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: left 10px center, right 8px center;
}

.language-picker:hover {
    border-color: #fff;
    color: #fff;
}

/* Toggle Buttons */
.method-toggle {
    display: flex;
    margin-bottom: 20px;
}

.toggle-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #737373;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.toggle-btn.active {
    color: #fff;
    border-bottom-color: #e50914;
}

.toggle-btn:hover {
    color: #b3b3b3;
}

/* ========== PAYMENT METHOD PAGE ========== */
.payment-wrapper {
    min-height: 100vh;
    background: #fff;
}

.payment-header {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    padding: 20px 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-header .netflix-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #e50914;
    text-decoration: none;
    letter-spacing: 2px;
}

.signout-link {
    color: #333;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
}

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

.payment-body {
    max-width: 440px;
    margin: 0 auto;
    padding: 40px 32px;
    text-align: center;
}

.step-indicator {
    color: #737373;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.payment-body h1 {
    color: #333;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}

.payment-body p {
    color: #737373;
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.payment-body .payment-desc {
    color: #333;
    font-size: 18px;
}

.payment-body .secure-text {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 8px;
}

/* Lock Icon */
.lock-icon {
    margin-bottom: 24px;
}

.lock-icon svg {
    width: 50px;
    height: 50px;
    color: #e50914;
}

/* Payment Options */
.payment-options {
    margin-top: 24px;
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    transition: border-color 0.2s;
}

.payment-option:hover {
    border-color: #0071eb;
}

.payment-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-option-text {
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

.card-logos {
    display: flex;
    gap: 4px;
}

.card-logos img {
    height: 25px;
}

.arrow-right {
    color: #333;
    font-size: 24px;
}

/* ========== CARD INPUT PAGE ========== */
.card-form-body {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 32px;
}

.card-form-body h1 {
    color: #333;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.card-form-body .subtitle {
    color: #737373;
    font-size: 18px;
    text-align: center;
    margin-bottom: 24px;
}

.card-logos-display {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 16px;
}

.card-logos-display img {
    height: 28px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.card-logos-display img.active {
    opacity: 1;
}

/* Card Input Fields */
.card-input-group {
    margin-bottom: 16px;
}

.card-input {
    width: 100%;
    height: 60px;
    padding: 26px 16px 10px;
    border: 1px solid #8c8c8c;
    border-radius: 2px;
    font-size: 16px;
    color: #333;
    background: #fff;
}

.card-input:focus {
    outline: none;
    border-color: #0071eb;
}

.card-input-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8c8c;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.1s ease;
}

.card-input:focus + .card-input-label,
.card-input:not(:placeholder-shown) + .card-input-label {
    top: 10px;
    font-size: 11px;
    transform: none;
}

.input-row {
    display: flex;
    gap: 12px;
}

.input-row .card-input-group {
    flex: 1;
}

/* Secure Badge */
.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #5fa53f;
    font-size: 13px;
    margin: 20px 0;
}

.secure-badge svg {
    width: 14px;
    height: 14px;
}

/* Start Button */
.btn-start-membership {
    background: #e50914;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    font-weight: 500;
    min-height: 64px;
    padding: 16px 32px;
    width: 100%;
    margin-top: 24px;
    transition: background 0.2s;
}

.btn-start-membership:hover {
    background: #f6121d;
}

/* Legal Text */
.legal-text {
    color: #737373;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 20px;
    text-align: left;
}

.legal-text a {
    color: #0071eb;
    text-decoration: none;
}

/* ========== FOOTER ========== */
.site-footer {
    background: rgba(0,0,0,0.75);
    padding: 30px 45px;
    color: #737373;
    font-size: 13px;
}

.site-footer.white {
    background: #f3f3f3;
    border-top: 1px solid #e6e6e6;
    padding: 30px 45px;
}

.site-footer.white .footer-phone,
.site-footer.white .footer-phone a,
.site-footer.white .footer-links a {
    color: #333;
}

.site-footer.white .language-picker {
    background: transparent;
    border: 1px solid #333;
    color: #333;
}

.footer-top {
    margin-bottom: 30px;
}

.footer-phone {
    color: #737373;
}

.footer-phone a {
    color: #737373;
    text-decoration: none;
}

.footer-phone a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    margin-bottom: 24px;
}

.footer-links a {
    color: #737373;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 740px) {
    .login-form-container {
        max-width: 100%;
        margin: 0;
        min-height: 100vh;
        padding: 60px 44px 40px;
        border-radius: 0;
        background: #000;
    }
    
    .login-header {
        padding: 0 20px;
        height: 70px;
    }
    
    .netflix-logo-svg {
        height: 24px;
    }
    
    .payment-header {
        padding: 12px 20px;
    }
    
    .payment-body,
    .card-form-body {
        padding: 20px 16px;
    }
}
