/* ===========================================
   GLOBAL STYLES - Streamflix
   Estilos compartidos entre todas las páginas
   =========================================== */

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
}

/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.9) 100%);
    /*url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?w=1920&q=80') center/cover no-repeat;*/
    z-index: -1;
}

/* Header / Navbar */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: #141414;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #282828;
}

.header-left {
    flex: 1;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0;
}

.header-center {
    flex: 2;
    text-align: center;
}

.welcome-text {
    font-size: 15px;
    color: #fff;
    font-weight: 400;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Menu Toggle Button */
.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: opacity 0.2s;
}

.menu-toggle:hover {
    opacity: 0.7;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #fff;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 53px;
    left: 0;
    width: 280px;
    height: calc(100vh - 53px);
    overflow-y: auto;
    background: #141414;
    border-right: 1px solid #282828;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding: 0;
}

.sidebar-menu.open {
    transform: translateX(0);
}

/* Search Box */
.menu-search {
    padding: 16px;
    border-bottom: 1px solid #282828;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #8c8c8c;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 10px 10px 36px;
    background: #282828;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #fff;
}

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

.search-principal-container {
    margin-top: 53px;
    margin-bottom: 16px;
    margin-left: 20%;
}

/* Menu Items */
.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    display: block;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #b3b3b3;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.menu-link:hover {
    background: #282828;
    color: #fff;
}

.menu-link.active {
    color: #fff;
    background: #282828;
    border-left: 2px solid #fff;
}

.menu-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Menu Divider */
.menu-divider {
    height: 1px;
    background: #282828;
    margin: 8px 0;
}

/* User Info in Menu */
.menu-user {
    padding: 16px;
    border-top: 1px solid #282828;
    margin-top: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
}

.user-email {
    font-size: 12px;
    color: #8c8c8c;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 53px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 998;
}

.menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Main Container */
.main-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 10px;
    /* Clearance for fixed header */
    min-height: calc(100vh - 60px);
    padding: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group label {
    display: block;
    color: #8c8c8c;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: background 0.2s;
}

.form-group input:focus {
    background: #454545;
}

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

/* Password Toggle */
.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8c8c8c;
    cursor: pointer;
    font-size: 14px;
}

.password-toggle:hover {
    color: #fff;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #e5e5e5;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #737373;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #333;
}

.divider span {
    padding: 0 16px;
}

/* Social Button */
.social-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.social-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.content-div {
    background: transparent;
    background-color: rgba(84, 81, 81, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid gray;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 100px;
}

.auth-container {
    max-width: 450px;
    width: 100% !important;
    min-height: 80vh;
    display: grid;
    place-items: center;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}


/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #737373;
}

.footer p {
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

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

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

/* Responsive - Global */
@media (max-width: 500px) {
    .header {
        padding: 16px 20px;
    }

    .sidebar-menu {
        width: 100%;
        border-radius: 0;
    }
}