:root {
    --primary: #24B9C8;
    --secondary: #0F213C;
    --gradient-start: #24B9C8;
    --gradient-end: #0F213C;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(15, 33, 60, 0.1);
    --animation-speed: 0.3s;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all var(--animation-speed) ease;
}

/* Login Page Enhancements */
.login-container {
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: block !important;
}

.login-banner {
    position: relative;
    height: 100%;
    background-color: #0F213C;
    background-image: linear-gradient(135deg, #24B9C8, #0F213C);
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    display: block !important;
}

.login-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(36, 185, 200, 0.8) 0%, rgba(15, 33, 60, 0.95) 100%);
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 1.5rem;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.banner-content h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffffff, #c9f0f5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.banner-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 120px;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature:hover::before {
    opacity: 1;
}

.feature i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #24B9C8, #99E5EB);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature:hover i {
    transform: scale(1.15);
}

.feature span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.login-form-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: #ffffff;
    overflow-y: auto;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: #ffffff;
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.login-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent, rgba(36, 185, 200, 0.1));
    border-radius: 0 0 0 100%;
    opacity: 0.8;
}

.login-form-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent, rgba(15, 33, 60, 0.1));
    border-radius: 0 100% 0 0;
    opacity: 0.8;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    margin-right: 0.6rem;
    box-shadow: 0 4px 15px rgba(36, 185, 200, 0.3);
    transition: all 0.4s ease;
    transform-origin: center;
}

.logo-icon:hover {
    transform: rotate(10deg);
}

.logo-icon i {
    font-size: 1.6rem;
    color: #ffffff;
}

.logo-text {
    font-weight: 700;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.slogan {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Form Styles Enhancement */
.floating-input {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-input input {
    height: 55px;
    padding: 1.2rem 1rem 0.5rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all var(--animation-speed) ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.floating-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(36, 185, 200, 0.25);
}

.floating-input .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: all 0.3s ease;
    z-index: 1;
}

.floating-input input:focus ~ .input-icon {
    color: var(--primary);
}

.floating-input label {
    position: absolute;
    top: 0;
    left: 3rem;
    height: 100%;
    padding: 1rem;
    pointer-events: none;
    transform-origin: 0 0;
    transition: all var(--animation-speed) ease;
    color: var(--text-muted);
}

.floating-input input:focus ~ label,
.floating-input input:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.75rem);
    color: var(--primary);
}

.btn-toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--animation-speed) ease;
    z-index: 2;
}

.btn-toggle-password:hover {
    color: var(--primary);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.15em;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    box-shadow: 0 0 0 0.15rem rgba(36, 185, 200, 0.25);
}

.form-check-label {
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.form-check:hover .form-check-label {
    color: var(--primary);
}

.forgot-password {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all var(--animation-speed) ease;
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary);
}

.forgot-password:hover::after {
    width: 100%;
}

.btn-login {
    height: 50px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all var(--animation-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 15px rgba(36, 185, 200, 0.2);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-login:hover::before {
    width: 100%;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(36, 185, 200, 0.3);
}

.btn-text {
    transition: all var(--animation-speed) ease;
    margin-right: 0.5rem;
}

.btn-icon {
    opacity: 0;
    transform: translateX(-20px);
    transition: all var(--animation-speed) ease;
}

.btn-login:hover .btn-text {
    transform: translateX(-10px);
}

.btn-login:hover .btn-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Social Login Styles */
.social-login {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.social-btn.google:hover { color: #DB4437; border-color: #DB4437; }
.social-btn.facebook:hover { color: #4267B2; border-color: #4267B2; }
.social-btn.twitter:hover { color: #1DA1F2; border-color: #1DA1F2; }

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.divider::before { margin-right: 1rem; }
.divider::after { margin-left: 1rem; }

/* Error Messages */
.error-message {
    font-size: 0.75rem;
    color: #f44336;
    margin-top: 0.3rem;
    padding-left: 3rem;
}

/* Toast Notifications */
.toast-container {
    z-index: 9999;
}

.toast {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.toast-header {
    background-color: #f9f9f9;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toast-body {
    padding: 1rem;
    font-size: 0.9rem;
}

/* Responsive Enhancements */
@media (max-width: 1199.98px) {
    .banner-content h1 {
        font-size: 2.2rem;
    }
    .banner-content p {
        font-size: 1rem;
    }
}

@media (max-width: 991.98px) {
    .login-form-container {
        padding: 1rem;
    }
    .login-form-wrapper {
        padding: 1.5rem;
    }
    .banner-content {
        padding: 1.2rem;
    }
    .banner-content h1 {
        font-size: 2rem;
    }
    .banner-features {
        gap: 1rem;
    }
    .feature {
        width: 100px;
    }
    .feature i {
        font-size: 1.8rem;
    }
    .feature span {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .login-form-wrapper {
        padding: 1.2rem;
        margin: 1rem 0;
    }
    .banner-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    .banner-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .banner-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.8rem;
        margin-top: 1rem;
    }
    .feature {
        width: calc(50% - 0.8rem);
        padding: 0.8rem;
    }
    .feature i {
        font-size: 1.5rem;
    }
    .feature span {
        font-size: 0.75rem;
    }
    .floating-input {
        margin-bottom: 1.2rem;
    }
    .floating-input input {
        height: 50px;
        font-size: 0.9rem;
    }
    .floating-input label {
        font-size: 0.9rem;
    }
    .btn-login {
        height: 45px;
        font-size: 0.9rem;
    }
}

@media (max-height: 700px) {
    .login-form-wrapper {
        padding: 1rem;
    }
    .floating-input {
        margin-bottom: 1rem;
    }
    .floating-input input {
        height: 48px;
    }
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    .logo-text {
        font-size: 1.4rem;
    }
    .slogan {
        margin-bottom: 1rem;
    }
    .btn-login {
        height: 45px;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Futuristic elements */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

/* Dashboard specific styles will be added in dashboard.css */

/* Ensure all elements are visible */
.sidebar, .main-content, .dashboard-container, .login-container, .login-form-container {
    display: block !important;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: all var(--animation-speed) ease;
    background-color: #f9fafc;
    padding-top: var(--topbar-height);
    width: calc(100% - var(--sidebar-width));
    position: relative;
    display: block !important;
}

/* Fix for missing images */
.stats-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all var(--animation-speed) ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: block !important;
}

/* Ensure card visibility */
.card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Default image placeholder style */
img[src$=".svg"]:not([src*="data:"]),
img[src$=".jpg"]:not([src*="data:"]),
img[src$=".png"]:not([src*="data:"]) {
    background-color: #f0f0f0;
    position: relative;
}

img[src$=".svg"]:not([src*="data:"])::before,
img[src$=".jpg"]:not([src*="data:"])::before,
img[src$=".png"]:not([src*="data:"])::before {
    content: "Imagem";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
}

/* Responsive Enhancements */
@media (max-width: 1199.98px) {
    .banner-content h1 {
        font-size: 2.2rem;
    }
    .banner-content p {
        font-size: 1rem;
    }
}

@media (max-width: 991.98px) {
    .login-form-container {
        padding: 1rem;
    }
    .login-form-wrapper {
        padding: 1.5rem;
    }
    .banner-content {
        padding: 1.2rem;
    }
    .banner-content h1 {
        font-size: 2rem;
    }
    .banner-features {
        gap: 1rem;
    }
    .feature {
        width: 100px;
    }
    .feature i {
        font-size: 1.8rem;
    }
    .feature span {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .login-form-wrapper {
        padding: 1.2rem;
        margin: 1rem 0;
    }
    .banner-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    .banner-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .banner-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.8rem;
        margin-top: 1rem;
    }
    .feature {
        width: calc(50% - 0.8rem);
        padding: 0.8rem;
    }
    .feature i {
        font-size: 1.5rem;
    }
    .feature span {
        font-size: 0.75rem;
    }
    .floating-input {
        margin-bottom: 1.2rem;
    }
    .floating-input input {
        height: 50px;
        font-size: 0.9rem;
    }
    .floating-input label {
        font-size: 0.9rem;
    }
    .btn-login {
        height: 45px;
        font-size: 0.9rem;
    }
}

@media (max-height: 700px) {
    .login-form-wrapper {
        padding: 1rem;
    }
    .floating-input {
        margin-bottom: 1rem;
    }
    .floating-input input {
        height: 48px;
    }
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    .logo-text {
        font-size: 1.4rem;
    }
    .slogan {
        margin-bottom: 1rem;
    }
    .btn-login {
        height: 45px;
    }
} 