/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #0056b3;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Estilos de tabla */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.actions a {
    margin-right: 10px;
}

/* Estilos de formulario */
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="password"],
form select {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

form button:hover {
    background-color: #0056b3;
}

/* --- Responsive Styles --- */

/* For tablets and smaller (up to 992px, Materialize's 'm' breakpoint) */
@media only screen and (max-width: 992px) {
    .login-card, .register-card {
        margin-top: 20%; /* Reduce margin on tablets */
    }
}

/* For mobile phones (up to 600px, Materialize's 's' breakpoint) */
@media only screen and (max-width: 600px) {
    .slider-container {
        height: 40vh; /* Reduce slider height significantly on mobile */
    }

    .banner-overlay h1 {
        font-size: 2.5rem; /* Reduce banner title font size */
    }

    .banner-overlay p {
        font-size: 1.2rem; /* Reduce banner subtitle font size */
    }

    .login-card, .register-card {
        margin-top: 5%; /* Drastically reduce top margin for stacked layout */
        padding: 20px;
    }

    .col.no-padding {
        padding: 0 !important;
    }
}

/* --- Text Animations --- */

/* Keyframes for the animations */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Styling for the animated title */
.animated-title {
    /* This helps contain the letter animations */
    display: inline-block;
}

.animated-title span {
    display: inline-block; /* Necessary for transform to work */
    opacity: 0; /* Initially hidden */
    animation: slideInUp 0.5s forwards; /* Apply animation */
}

/* Stagger the animation for each letter */
.animated-title span:nth-child(1) { animation-delay: 0.1s; }
.animated-title span:nth-child(2) { animation-delay: 0.15s; }
.animated-title span:nth-child(3) { animation-delay: 0.2s; }
.animated-title span:nth-child(4) { animation-delay: 0.25s; }
.animated-title span:nth-child(5) { animation-delay: 0.3s; }
.animated-title span:nth-child(6) { animation-delay: 0.35s; } /* Space */
.animated-title span:nth-child(7) { animation-delay: 0.4s; }
.animated-title span:nth-child(8) { animation-delay: 0.45s; }
.animated-title span:nth-child(9) { animation-delay: 0.5s; }
.animated-title span:nth-child(10) { animation-delay: 0.55s; }
.animated-title span:nth-child(11) { animation-delay: 0.6s; }
.animated-title span:nth-child(12) { animation-delay: 0.65s; }
.animated-title span:nth-child(13) { animation-delay: 0.7s; }


/* Styling for the animated subtitle */
.animated-subtitle {
    opacity: 0; /* Initially hidden */
    animation: fadeIn 1s forwards; /* Apply animation */
    animation-delay: 1.2s; /* Delay to start after the title animation finishes */
}