@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;

    line-height: 1.5;
}


.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 120px;
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    color: var(--color-text-light);
    font-weight: 500;
}

.nav-list a:not(.btn) {
    color: var(--color-text-light);
    text-decoration: none;
}

h1 {
    font-weight: bold;
    margin: 0;
}

h2 {
    text-align: center;
}

p {
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
}

span {
    font-size: 12px;
}

a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
}

button {
    border-radius: 20px;
    border: 1px solid #e65a20;
    background: linear-gradient(135deg, #ff7a3d 0%, #e65a20 100%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 14px 48px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in, box-shadow .2s ease, background .2s ease;
    box-shadow: 0 8px 16px rgba(230, 90, 32, 0.25);
}

button:active {
    transform: scale(0.95);
}

button:focus {
    outline: none;
}

button.ghost {
    background-color: transparent;
    color: #e65a20;

}

form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 32px;
    height: 100%;
    text-align: center;
}

input {
    background-color: #f5f5f5;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
    margin: 10px 0;
    width: 100%;
    border-radius: 12px;
    font-size: 16px;
    transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

input:focus {
    outline: none;
    border-color: #e65a20;
    box-shadow: 0 0 0 4px rgba(230, 90, 32, 0.15);
    background-color: #fff;
}

.container {
    background-color: #fff;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {

    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: #34abb0;
    background: -webkit-linear-gradient(to right, #FF4B2B, #FF416C);
    background: linear-gradient(135deg, #f7f6f2 0%, #f750b7 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.social-container {
    margin: 20px 0;
}

.social-container a {
    border: 1px solid #DDDDDD;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
}

footer {
    background-color: #222;
    color: #fff;
    font-size: 14px;
    bottom: 0;
    position: fixed;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 999;
}

footer p {
    margin: 10px 0;
}

footer i {
    color: red;
}

footer a {
    color: #3c97bf;
    text-decoration: none;
}

.footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-align: center;
    padding: var(--spacing-md);
    margin-top: auto;
}

.footer-text {
    font-size: 0.8rem;
    line-height: 1.5;
}


/* General Body & Font Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Montserrat', 'Inter', sans-serif;
    background: #f6f5f7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    /* Removido -20px de margem superior que poderia causar problemas */
    color: #1f2937;
}

/* Header Styles */
.header {
    background-color: #02006f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

.header-ct {
    max-width: 1200px;
    margin: 0 auto;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-list li {
    cursor: pointer;
    font-weight: 500;
    color: #fff;
}

.button-login a {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s;
    color: #02006f;
}

.button-login a:hover {
    background-color: #c7d2fe;
}

/* Main Container */
.main-container {
    max-width: 1024px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    flex-grow: 1;
}

/* Student Card Section */
.student-card {
    background-color: #374151;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease-in-out;
}

.student-card:hover {
    transform: scale(1.02);
}

.qr-code-container {
    background-color: #ffffff;
    padding: 0.625rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
}



.info-label {
    font-size: 0.875rem;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.card-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: center;
    opacity: 0.8;
}

.card-footer-ufrn {
    font-weight: 700;
    font-size: 1.125rem;
}

.card-footer-propesq {
    font-weight: 600;
    font-size: 1rem;
}

/* News Section */
.news-section {
    margin-bottom: 2.5rem;
}

.news-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #6b7281;
    height: 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-placeholder {
    font-size: 0.875rem;
}

/* Projects Section */
.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

.project-item {
    aspect-ratio: 16 / 9;
    background-color: #d1d5db;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 300ms;
    cursor: pointer;
}

.project-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.play-icon {
    width: 4rem;
    height: 4rem;
    color: #6b7281;
    opacity: 0.7;
}

/* Footer Styles */
.footer {
    background-color: #1f2937;
    color: #d1d5db;
    padding: 2rem;
    text-align: center;
}

.footer-text {
    line-height: 1.6;
    font-size: 0.875rem;
}


/* --- Media Queries for Responsiveness --- */

/* Small screens and up (640px) */
@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Medium screens and up (768px) */
@media (min-width: 768px) {
    .student-card {
        flex-direction: row;
    }

    .student-info {
        text-align: left;
    }

    .card-footer {
        justify-content: flex-start;
    }
}

/* Large screens and up (1024px) */
@media (min-width: 1024px) {
    .student-name {
        font-size: 1.875rem;
    }

    .student-id {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --- Media Queries para a página de login --- */
@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        /* Ocupa a altura toda */
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .form-container,
    .overlay-container {
        position: relative;
        /* Remove o posicionamento absoluto */
        width: 100%;
        left: 0;
        height: auto;
    }

    .overlay-container {
        order: -1;
        /* Move a imagem para cima do formulário */
        padding: 1.25rem 0;
        /* Espaçamento mais compacto no mobile */
    }

    /* Corrige estilos de desktop aplicados ao overlay no mobile */
    .overlay {
        position: relative;
        left: 0;
        width: 100%;
        transform: none;
        background-position: center;
    }

    .overlay-panel {
        position: relative;
        width: 100%;
        height: auto;
        padding: 0 16px;
    }

    /* Garante que a imagem do header não seja cortada */
    .overlay-panel img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    /* Evita sobreposição do footer em telas pequenas */
    footer {
        position: static;
    }

    /* Permite que a página tenha altura dinâmica no mobile */
    body {
        height: auto;
        min-height: 100vh;
        padding: 16px 16px calc(env(safe-area-inset-bottom, 0) + 16px);
    }

    /* Tipografia mais confortável no mobile */
    h1 {
        font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    }

    h2 {
        font-size: clamp(1.125rem, 3vw, 1.375rem);
    }

    p {
        font-size: 0.95rem;
    }

    /* Inputs e botões com área de toque maior */
    input {
        font-size: 16px;
        padding: 16px;
    }

    button {
        width: 100%;
        padding: 14px 18px;
        border-radius: 14px;
    }
}

/* Profile Card Styles */
.profile-card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    margin: 1rem auto;
    max-width: 500px;
    width: 90%;
}

.profile-image {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.qr-code-container {
    background-color: #ffffff;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.name-title {
    margin-bottom: 1rem;
}

.profile-card .student-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.profile-card .student-id {
    font-size: 1rem;
    color: #6b7281;
    margin: 0.25rem 0 0 0;
}

.buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.btn-chat,
.btn-follow {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    flex-grow: 1;
    max-width: 150px;
}

.btn-chat {
    background-color: #2B7D4B;
    color: #fff;
}

.btn-chat .student-id {
    margin: 0;
}

.btn-follow {
    background-color: #db2777;
    color: #fff;
}

/* Responsive adjustments for the profile card */
@media (min-width: 768px) {
    .profile-card {
        flex-direction: row;
        text-align: left;
        width: 100%;
        max-width: 700px;
    }

    .profile-image {
        margin-bottom: 0;
        margin-right: 1.5rem;
    }

    .profile-info {
        align-items: flex-start;
        text-align: left;
    }

    .buttons {
        justify-content: flex-start;
    }

    .btn-chat,
    .btn-follow {
        flex-grow: 0;
    }
}