:root {
    --primary-color: #0073ca;
    --primary-dark: #005fa3;
    --primary-light: #e6f2fa;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --white: #ffffff;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.form-header {
    background-color: var(--primary-color);
    padding: 32px 24px;
    text-align: center;
}

.logo {
    max-width: 180px;
}

.content-wrapper {
    padding: 32px 24px;
}

.title-section {
    text-align: center;
    margin-bottom: 32px;
}

.title-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

#subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--dark-gray);
    line-height: 1.5;
}

.modern-form {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 16px 0 8px 0;
    font-size: 16px;
    border: none;
    border-bottom: 1px solid var(--medium-gray);
    background-color: transparent;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: 16px;
    left: 0;
    font-size: 16px;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 12px;
    color: var(--primary-color);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .input-border {
    width: 100%;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 32px;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 202, 0.25);
}

.btn-text {
    margin-right: 8px;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Adicione estas regras ao seu CSS existente */

.restricted-access {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.restricted-link {
    color: #0073ca;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.restricted-link:hover {
    color: #005fa3;
    text-decoration: underline;
}

#video-container {
    display: none; /* Inicialmente oculto */
    text-align: center;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.5s ease-in-out;
    width: 100%;
    max-width: 800px; /* Largura máxima aumentada */
}

#video-container iframe {
    width: 100%;
    min-height: 450px; /* Altura mínima aumentada */
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

#finish {
    background-color: #0073ca;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 8px rgba(0, 115, 202, 0.2);
}

#finish:hover {
    background-color: #0062ad;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 115, 202, 0.25);
}

/* Animação de aparecimento */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 480px) {
    .container {
        border-radius: 0;
        box-shadow: none;
    }

    .form-header {
        padding: 24px 16px;
    }

    .content-wrapper {
        padding: 24px 16px;
    }

    .title-section h1 {
        font-size: 24px;
    }

    #subtitle {
        font-size: 14px;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    #video-container {
        padding: 20px 15px;
    }

    #video-container iframe {
        min-height: 300px; /* Altura menor em dispositivos móveis */
    }

    #video-container h3 {
        font-size: 18px;
    }

    #finish {
        padding: 12px 24px;
    }
}