:root {
    --primary-color: #0693e3;
    --primary-dark: #0570b0;
    --secondary-color: #00d084;
    --dark-bg: #1a1a2e;
    --card-bg: #ffffff;
    --text-dark: #1a1a2e;
    --text-light: #6c757d;
    --gradient-primary: linear-gradient(135deg, #0693e3 0%, #00d084 100%);
    --gradient-hover: linear-gradient(135deg, #0570b0 0%, #00b070 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand img {
    height: 60px;
}

/* Botões */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(6, 147, 227, 0.4);
    color: white;
}

/* ===== LOGIN PAGE ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    padding-top: 70px;
}

.login-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.5s ease-out;
}

.login-logo {
    height: 80px;
    margin-bottom: 1.5rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn-login {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.875rem;
    border-radius: 50px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(6, 147, 227, 0.35);
}

.btn-login:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(6, 147, 227, 0.45);
    color: white;
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(6, 147, 227, 0.15);
}

.form-control::placeholder {
    color: #adb5bd;
}

/* ===== HOME PAGE ===== */
.home-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
}

.home-body {
    flex: 1;
    padding: 3rem 0;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

/* Video Cards */
.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(6, 147, 227, 0.15);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 177.78%; /* 9:16 vertical (Shorts) */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1rem 1.25rem;
}

.video-number {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.video-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.video-desc {
    font-size: 0.78rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

.video-click-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

/* Modal de vídeo em tela cheia */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    width: 100%;
    max-width: 450px;
}

.video-modal-frame {
    position: relative;
    padding-bottom: 177.78%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-modal-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 2001;
    transition: background 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}


/* Footer */
.footer-octalog {
    background: #1a1a2e;
    color: #ffffff;
    padding: 4rem 0 2rem;
}

.footer-logo {
    height: 150px;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-description-small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

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

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

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

.app-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-btn img {
    height: 40px;
    transition: transform 0.3s ease;
}

.app-btn:hover img {
    transform: scale(1.05);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    padding-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Alerts */
.alert-login {
    border-radius: 10px;
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .home-body {
        padding: 2rem 0;
    }
}
