/* Netflix Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.4;
}

/* Login Wrapper */
.login-wrapper {
    min-height: 100vh;
    position: relative;
}

/* Background */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%),
                url('../../img/index/header.jpg') center/cover no-repeat;
    z-index: -2;
}

.background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.4) 0%, 
        rgba(0,0,0,0.6) 50%, 
        rgba(0,0,0,0.8) 100%);
    z-index: -1;
}

/* Header */
.login-header {
    position: relative;
    z-index: 10;
    padding: 20px 0;
}

.logo-link {
    display: inline-block;
    margin-left: 3.5%;
}

.logo {
    height: 45px;
    width: auto;
}

/* Main Content */
.login-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-form-wrapper {
    background: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    padding: 60px 68px 40px;
    margin-bottom: 90px;
}

.login-form-wrapper h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 28px;
}

/* Error Messages */
.error-message {
    background: #e87c03;
    border-radius: 4px;
    margin-bottom: 16px;
    padding: 10px 20px;
}

.error-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.error-icon {
    font-size: 20px;
    margin-top: 2px;
}

.error-text {
    font-size: 14px;
    line-height: 1.4;
}

/* Form Styles */
.login-form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 16px 20px 0;
    background: #333;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: background-color 0.15s ease;
}

.form-input:focus {
    background: #454545;
}

.form-input.error {
    border-bottom: 2px solid #e87c03;
}

.form-label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #8c8c8c;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.15s ease;
}

.input-group.focused .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: 10px;
    font-size: 11px;
    transform: translateY(0);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8c8c8c;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 400;
    padding: 0;
}

.password-toggle:hover {
    color: #fff;
}

/* Login Button */
.login-button {
    width: 100%;
    height: 48px;
    background: #e50914;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin: 24px 0 12px;
    transition: background-color 0.2s ease;
}

.login-button:hover {
    background: #f40612;
}

.login-button:disabled {
    background: #333;
    cursor: not-allowed;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
}

.checkbox-input {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: #b3b3b3;
    font-size: 13px;
    cursor: pointer;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 1px solid #b3b3b3;
    border-radius: 2px;
    margin-right: 8px;
    position: relative;
    background: transparent;
    transition: all 0.2s ease;
}

.checkbox-input:checked + .checkbox-label .checkbox-custom {
    background: #fff;
    border-color: #fff;
}

.checkbox-input:checked + .checkbox-label .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

/* Help Link */
.help-link {
    color: #b3b3b3;
    font-size: 13px;
    text-decoration: none;
}

.help-link:hover {
    text-decoration: underline;
}

/* Sign Up Section */
.signup-section {
    margin-top: 16px;
}

/* Signup Divider */
.signup-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.signup-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #333;
}

.divider-text {
    background: rgba(0, 0, 0, 0.75);
    color: #8c8c8c;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
}

/* Signup Button */
.signup-button {
    display: block;
    width: 100%;
    height: 48px;
    background: #e50914;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    line-height: 48px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background-color 0.2s ease;
}

.signup-button:hover {
    background: #f40612;
}

.signup-text {
    color: #737373;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

.signup-link {
    color: #fff;
    text-decoration: none;
}

.signup-link:hover {
    text-decoration: underline;
}

.recaptcha-text {
    color: #8c8c8c;
    font-size: 13px;
    line-height: 1.4;
}

.learn-more-btn {
    background: none;
    border: none;
    color: #0071eb;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}

.learn-more-btn:hover {
    text-decoration: underline;
}

.recaptcha-info {
    margin-top: 10px;
    color: #8c8c8c;
    font-size: 13px;
    line-height: 1.4;
}

.recaptcha-info a {
    color: #0071eb;
    text-decoration: none;
}

.recaptcha-info a:hover {
    text-decoration: underline;
}

/* Footer */
.login-footer {
    background: rgba(0, 0, 0, 0.75);
    padding: 30px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 3.5%;
}

.footer-contact {
    color: #737373;
    font-size: 16px;
    margin-bottom: 30px;
}

.footer-contact a {
    color: #737373;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.footer-column a {
    display: block;
    color: #737373;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-language .language-selector {
    background: transparent;
    border: 1px solid #737373;
    color: #737373;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 740px) {
    .login-header {
        padding: 15px 0;
    }
    
    .logo {
        height: 35px;
        margin-left: 5%;
    }
    
    .login-main {
        padding: 0;
        align-items: stretch;
    }
    
    .login-container {
        max-width: none;
    }
    
    .login-form-wrapper {
        background: rgba(0, 0, 0, 0.85);
        border-radius: 0;
        padding: 30px 5% 20px;
        margin-bottom: 0;
        min-height: calc(100vh - 140px);
    }
    
    .login-form-wrapper h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .form-input {
        height: 48px;
        font-size: 16px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-container {
        padding: 0 5%;
    }
}

@media (max-width: 500px) {
    .login-form-wrapper {
        padding: 20px 5%;
    }
    
    .login-form-wrapper h1 {
        font-size: 24px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Focus states for accessibility */
.form-input:focus,
.login-button:focus,
.checkbox-input:focus + .checkbox-label .checkbox-custom,
.help-link:focus,
.signup-link:focus,
.signup-button:focus,
.learn-more-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Loading state */
.login-button.loading {
    position: relative;
    color: transparent;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}