@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@300;400;600&display=swap');

:root {
    --primary-color: #FF7316;
    --secondary-color: #FF9800;
    --dark-gray: #333;
    --light-gray: #f5f5f5;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

/* General */
html, body {
    height: 100%;
    background-color: var(--white);
    color: var(--dark-gray);
}

/* Franja superior */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 20px;
    font-size: 14px;
}

.button {
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

.btn_search {background-color: #555555;}

.top-bar input {
    padding: 5px 8px;
    border-radius: 4px 0 0 4px;
    border: none;
    outline: none;
    font-size: 14px;
}

.top-bar button {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 5px 10px;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
}

.navbar img {
    height: 40px;
}

.navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    font-weight: 600;
    color: var(--dark-gray);
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--primary-color);
}

/* Main split */
.main {
    display: flex;
    height: calc(100vh - 140px); /* espacio para top-bar + navbar + footer */
}

.main-left {
    flex: 2;
    position: relative;
    overflow: hidden;
}

.main-left video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-left h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
}

/* Login box */
.main-right {
    flex: 1;
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.login-box {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px 25px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.login-box h2 {
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.login-box label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.login-box input[type="email"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.login-box input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.login-box .remember {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 15px;
}

.login-box .remember input {
    margin-right: 8px;
}

.login-box button {
    width: 100%;
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-box button:hover {
    background-color: var(--secondary-color);
}

.login-box a {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    color: #666;
    text-decoration: none;
}

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

/* Footer */
footer {
    background-color: #111;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px;
    font-size: 13px;
}

footer img {
    height: 30px;
}

/* Responsive */
@media (max-width: 900px) {
    .main {
        flex-direction: column;
        height: auto;
    }
    .main-left, .main-right {
        flex: none;
        width: 100%;
        height: auto;
    }
    .main-left {
        height: 250px;
    }
}
