/* Netflix Registration 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;
}

/* Register Wrapper */
.register-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background */
.register-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 */
.register-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 3.5%;
    background: transparent;
    position: relative;
    z-index: 10;
}

.logo-link {
    display: inline-block;
}

.logo {
    height: 45px;
    width: auto;
}

.signin-link {
    color: #fff;
    text-decoration: none;
    font-size: 19px;
    font-weight: 600;
}

.signin-link:hover {
    text-decoration: underline;
}

@media (max-width: 740px) {
    .logo {
        height: 35px;
    }

    .signin-link {
        font-size: 16px;
    }
}

/* Main Content */
.register-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.register-container {
    width: 100%;
    max-width: 440px;
}

.register-content {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 60px 68px 40px;
    border-radius: 4px;
}

@media (max-width: 740px) {
    .register-main {
        padding: 0;
    }

    .register-content {
        padding: 30px 5% 20px;
        border-radius: 0;
        min-height: calc(100vh - 140px);
    }
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #333;
    color: #8c8c8c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-number.active {
    background: #e50914;
    color: #fff;
}

.step-text {
    font-size: 13px;
    color: #8c8c8c;
    white-space: nowrap;
}

.step-indicator.active .step-text {
    color: #fff;
}

.step-divider {
    width: 60px;
    height: 1px;
    background: #333;
    margin: 0 20px;
    margin-bottom: 20px;
}

@media (max-width: 740px) {
    .progress-steps {
        display: none;
    }
}

/* Form Section */
.form-section {
    width: 100%;
}

.form-header {
    margin-bottom: 20px;
}

.form-header h1 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.1;
    color: #fff;
}

.form-header p {
    font-size: 18px;
    color: #fff;
    line-height: 1.4;
}

@media (max-width: 740px) {
    .form-header h1 {
        font-size: 28px;
    }

    .form-header p {
        font-size: 16px;
    }
}

/* Messages */
.message {
    border-radius: 4px;
    margin-bottom: 16px;
    padding: 10px 20px;
}

.message.error {
    background: #e87c03;
    color: #fff;
}

.message.success {
    background: #46d369;
    color: #fff;
}

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.message-icon {
    font-size: 20px;
    margin-top: 2px;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
}

.message-text a {
    color: #fff;
    text-decoration: underline;
}

/* Form Styles */
.register-form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    height: 60px;
    padding: 20px 20px 6px;
    background: #333;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.15s ease;
}

.form-input:focus {
    background: #454545;
    border-color: #fff;
}

.form-input.error {
    border-color: #e87c03;
}

@media (max-width: 740px) {
    .form-input {
        height: 50px;
        padding: 16px 20px 0;
    }
}

.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: 12px;
    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;
}

/* Password Requirements */
.password-requirements {
    display: none;
    margin-top: -12px;
    margin-bottom: 16px;
    padding-left: 20px;
}

.password-requirements p {
    font-size: 13px;
    color: #8c8c8c;
}

.password-requirements.valid p {
    color: #46d369;
}

.password-requirements.invalid p {
    color: #e87c03;
}

/* Marketing Checkbox */
.marketing-checkbox {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 1px solid #8c8c8c;
    border-radius: 2px;
    margin-right: 12px;
    margin-top: 2px;
    position: relative;
    background: #333;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-input:checked+.checkbox-custom {
    background: #0071eb;
    border-color: #0071eb;
}

.checkbox-input:checked+.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* Register Button */
.register-button {
    width: 100%;
    height: 64px;
    background: #e50914;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.2s ease;
}

.register-button:hover {
    background: #f40612;
}

.register-button:disabled {
    background: #333;
    cursor: not-allowed;
}

@media (max-width: 740px) {
    .register-button {
        height: 48px;
        font-size: 16px;
        font-weight: 700;
    }
}

/* Login Section */
.login-section {
    text-align: left;
}

.login-text {
    color: #737373;
    font-size: 16px;
}

.login-link {
    color: #0071eb;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

@media (max-width: 740px) {
    .login-text {
        color: #b3b3b3;
    }
}

/* Footer */
.register-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: 500px) {
    .register-content {
        padding: 20px 5%;
    }

    .form-header h1 {
        font-size: 24px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 350px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Focus states for accessibility */
.form-input:focus,
.register-button:focus,
.checkbox-input:focus+.checkbox-custom,
.login-link:focus,
.signin-link:focus {
    outline: 2px solid #0071eb;
    outline-offset: 2px;
}

/* Loading state */
.register-button.loading {
    position: relative;
    color: transparent;
}

.register-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);
    }
}

/* Step indicator active state for mobile */
@media (max-width: 740px) {
    .step-indicator.active .step-text {
        color: #fff;
    }
}