/* Modern Login Styles with Glassmorphism */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
    background: #0f172a; /* Deep dark background */
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#page-container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #fff;
    animation: fadeIn 0.8s ease-out;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-box.exit-active {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
    filter: blur(20px);
}

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in;
}

.transition-overlay.flash {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header .brand img {
    max-width: 180px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 10px rgba(0, 172, 172, 0.3));
}

.form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #00acac !important;
    box-shadow: 0 0 15px rgba(0, 172, 172, 0.2) !important;
}

.btn-login {
    background: linear-gradient(135deg, #00acac 0%, #008a8a 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 10px;
    color: white;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 172, 172, 0.4);
    background: linear-gradient(135deg, #00c2c2 0%, #00acac 100%);
}

.showHidePw {
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s;
}

.showHidePw:hover {
    color: #00acac;
}

.checkbox-css label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-text {
    margin-top: 25px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.forgot-password {
    color: #00acac;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #00c2c2;
    text-decoration: underline;
}

/* Glass Modal Styles */
.glass-modal {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.modal-header .close {
    text-shadow: none !important;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.modal-header .close:hover {
    opacity: 1;
}

.input-group-text {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px 0 0 10px !important;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0 !important;
}

.alert-inline {
    background: rgba(255, 82, 82, 0.1);
    color: #ff5252;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 10px;
    border: 1px solid rgba(255, 82, 82, 0.2);
    display: flex;
    align-items: center;
    animation: shake 0.4s ease-in-out;
}

.alert-inline::before {
    content: "\f06a";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Alertas (Restore) */
#gritter-notice-wrapper {
    z-index: 10000 !important;
}
.alert-warning .gritter-item p,.alert-success .gritter-item p,.alert-error .gritter-item p,.alert-info .gritter-item p {
    color: #FFF !important;
    font-size: 12px !important;
}
.gritter-close:before, .gritter-light .gritter-close:before {
    font-family:Font Awesome\ 5 Free !important;
    content: "\f00d" !important;
    font-size: 16px !important;
    font-weight: 900 !important;
}
.alert-success .gritter-bottom,.alert-success .gritter-item,.alert-success .gritter-top {
    background: #00acac !important;
}
.alert-warning .gritter-bottom,.alert-warning .gritter-item,.alert-warning .gritter-top {
    background: #F8AC59 !important;
}
.alert-info .gritter-bottom,.alert-info .gritter-item,.alert-info .gritter-top {
    background: #1C84C6 !important;
}
.alert-error .gritter-bottom,.alert-error .gritter-item,.alert-error .gritter-top {
    background: #F66C5E !important;
}
.alert-success .gritter-close,.alert-success .gritter-light .gritter-close {
    border-left: 1px solid #227975;
}
.alert-error .gritter-close,.alert-error .gritter-light .gritter-close {
    border-left: 1px solid #943f3f;
}
.gritter-image i{
    font-size: 45px;
    color: #fff;
}
.alert-loader .gritter-image i{
    font-size: 30px;
    color: #fff;
}
.alert-loader .gritter-image {
    width: 35px;
    height: 35px;
    float: left;
}
.alert-success .gritter-close{
    color: #FFFFFF !important
}
.alert-warning .gritter-close{
    color: #FFFFFF !important;
}
.alert-info .gritter-close{
    color: #FFFFFF !important
}
.alert-error .gritter-close{
    color: #FFFFFF !important;
}
.alert-success .gritter-title {
    font-size: 13px !important;
	  font-weight: bold !important;
}
.alert-warning .gritter-title {
    font-size: 13px !important;
	  font-weight: bold !important;
}
.alert-info .gritter-title {
    font-size: 13px !important;
	  font-weight: bold !important;
}
.alert-error .gritter-title {
    font-size: 13px!important;
	  font-weight:bold !important;
}

#loading {
    background: #0f172a;
}
