/* Login Page Styles - SENA Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #04324D, #0e679b);
    position: relative;
}

/* Background Animation */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    right: 20%;
    animation-delay: -15s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    top: 50%;
    left: 5%;
    animation-delay: -7s;
}

.shape-6 {
    width: 90px;
    height: 90px;
    top: 70%;
    right: 5%;
    animation-delay: -12s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.7;
    }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particle-float 15s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Main Container */
.login-container {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* Branding Panel */
.branding-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
}

.branding-content {
    max-width: 500px;
    color: white;
    text-align: center;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.logo-container {
    text-align: center;
    margin: 20px 0;
}

.logo-full-img {
    max-width: 40%;
    height: auto;
}

.sena-subtitle {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #000000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-description {
    margin-bottom: 50px;
}

.brand-description h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #ffffff;
}

.brand-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    color: #ffffff;
}

.features-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    color: #333;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: 1.2rem;
    color: #39A900;
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* Login Panel */
.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.login-content {
    width: 100%;
    max-width: 400px;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-text h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.welcome-text p {
    color: #666;
    font-size: 1rem;
}

/* Form Styles */
.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #39A900;
    box-shadow: 0 0 0 3px rgba(57, 169, 0, 0.1);
}

.input-wrapper input:focus + .input-border {
    transform: scaleX(1);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #39A900;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #39A900, #2d8000);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 0 0 12px 12px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #39A900;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: #39A900;
    border-color: #39A900;
}

.checkbox-container input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
}

.forgot-password {
    color: #FF6600;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #e55a00;
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #39A900, #2d8000);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(57, 169, 0, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(57, 169, 0, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.btn-text,
.btn-loading,
.btn-success {
    transition: all 0.3s ease;
}

.btn-loading,
.btn-success {
    display: none;
}

.login-btn.loading .btn-text {
    display: none;
}

.login-btn.loading .btn-loading {
    display: block;
}

.login-btn.success .btn-text,
.login-btn.success .btn-loading {
    display: none;
}

.login-btn.success .btn-success {
    display: block;
}

.login-btn.success {
    background: linear-gradient(135deg, #39A900, #2d8000);
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.success-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Danger Modal Styles */
.danger-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.danger-modal.active {
    opacity: 1;
    visibility: visible;
}

.danger-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    border-top: 5px solid #e74c3c;
}

.danger-modal.active .danger-content {
    transform: translateY(0);
}

.danger-icon {
    font-size: 50px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.danger-content h3 {
    color: #e74c3c;
    margin-bottom: 10px;
    font-size: 22px;
}

.danger-content p {
    color: #555;
    margin-bottom: 20px;
    font-size: 16px;
}

.danger-modal-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.danger-modal-btn:hover {
    background-color: #c0392b;
}

/* Forgot Password Modal Styles */
.forgot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.forgot-modal.active {
    opacity: 1;
    visibility: visible;
}

.forgot-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(57, 169, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
    border-top: 5px solid #39A900;
}

.forgot-modal.active .forgot-content {
    transform: translateY(0);
}

.close-forgot-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.3s;
}

.close-forgot-modal:hover {
    color: #e74c3c;
}

.forgot-icon {
    font-size: 50px;
    color: #39A900;
    margin-bottom: 15px;
}

.forgot-content h3 {
    color: #39A900;
    margin-bottom: 10px;
    font-size: 22px;
}

.forgot-content p {
    color: #555;
    margin-bottom: 20px;
    font-size: 16px;
}

.forgot-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.forgot-form .input-wrapper {
    position: relative;
}

.forgot-form .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.forgot-form input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.forgot-form input:focus {
    border-color: #39A900;
    outline: none;
}

.recovery-btn {
    background-color: #39A900;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.recovery-btn:hover {
    background-color: #2d8000;
}

.recovery-btn .btn-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #39A900;
    align-items: center;
    justify-content: center;
}

.recovery-btn.loading .btn-text {
    visibility: hidden;
}

.recovery-btn.loading .btn-loading {
    display: flex;
}

.recovery-success {
    display: none;
    color: #39A900;
    margin-top: 20px;
}

.recovery-success i {
    font-size: 40px;
    margin-bottom: 10px;
}

.recovery-success p {
    color: #39A900;
    margin-bottom: 0;
}

.success-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: scaleIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    font-size: 4rem;
    color: #39A900;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.success-content p {
    color: #666;
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e1e5e9;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #39A900, #2d8000);
    width: 0%;
    animation: progressFill 3s ease-in-out;
}

@keyframes progressFill {
    to {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .login-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .branding-panel {
        flex: none;
        padding: 20px;
        min-height: auto;
        order: 1;
    }
    
    .login-panel {
        flex: none;
        padding: 30px 20px;
        min-height: auto;
        order: 2;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .features-preview {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .input-wrapper input {
        padding: 18px 15px 18px 45px;
        font-size: 16px;
    }

    .login-btn {
        padding: 18px;
        font-size: 1.1rem;
    }

    .logo-img {
        width: 70px;
        height: 70px;
    }

    .brand-name {
        font-size: 1.6rem;
    }

    .brand-description {
        margin-bottom: 30px;
    }

    .welcome-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .branding-panel,
    .login-panel {
        padding: 15px;
    }
    
    .welcome-text h2 {
        font-size: 1.5rem;
    }
    
    .input-wrapper input {
        padding: 20px 15px 20px 45px;
        font-size: 16px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .success-content {
        padding: 30px 20px;
        margin: 20px;
    }
}

@media (max-width: 768px) {
    .background-animation {
        position: fixed;
    }

    .floating-shapes {
        opacity: 0.3;
    }

    .particles {
        display: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    .feature-item:hover,
    .login-btn:hover {
        transform: none;
    }

    .login-btn:active {
        transform: scale(0.98);
    }
}
