﻿body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #e8eaf0 0%, #f5f7fa 50%, #e1e4eb 100%);
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-section {
    text-align: center;
    margin-bottom: 35px !important;
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1b6ec2 0%, #0d6efd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px !important;
    box-shadow: 0 10px 30px rgba(27, 110, 194, 0.3);
}

    .brand-logo i {
        font-size: 35px;
        color: white;
    }

.brand-title {
    color: #151717;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

.brand-subtitle {
    color: #6c757d;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Grupos de input con espaciado específico */
.login-card .input-group {
    margin-bottom: 30px !important;
    margin-top: 0 !important;
}

/* Labels con espaciado específico */
.login-card .input-label {
    color: #151717;
    font-weight: 600;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
    display: block;
    font-size: 14px;
}

.login-card .input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 55px;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

    .login-card .input-container:focus-within {
        border-color: #1b6ec2;
        background: white;
        box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.1);
    }

.input-icon {
    padding: 0 15px;
    color: #6c757d;
    font-size: 18px;
    transition: color 0.3s ease;
}

.input-container:focus-within .input-icon {
    color: #1b6ec2;
}

.login-card .form-input {
    border: none !important;
    background: transparent;
    width: 100%;
    height: 100%;
    padding: 0 15px 0 0 !important;
    font-size: 15px;
    color: #151717;
    outline: none;
    box-shadow: none !important;
    margin: 0 !important;
}

    .login-card .form-input::placeholder {
        color: #adb5bd;
        font-weight: 400;
    }

    .login-card .form-input:focus {
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

.login-button {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #1b6ec2 0%, #0d6efd 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

    .login-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(27, 110, 194, 0.3);
    }

    .login-button:active {
        transform: translateY(0);
    }

    .login-button.loading {
        pointer-events: none;
    }

.button-text {
    transition: opacity 0.3s ease;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .loading-spinner.show {
        opacity: 1;
    }

        .loading-spinner.show ~ .button-text {
            opacity: 0;
        }

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-card .remember-forgot {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 25px 0 !important;
    font-size: 14px;
}

.login-card .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
}

.login-card .form-check-input {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-top: 0 !important;
    margin-left: 0 !important;
}

    .login-card .form-check-input:checked {
        background-color: #1b6ec2;
        border-color: #1b6ec2;
    }

.login-card .form-check-label {
    color: #6c757d;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(200, 210, 225, 0.3);
    animation: float 6s ease-in-out infinite;
}

    .shape:nth-child(1) {
        width: 300px;
        height: 300px;
        top: -150px;
        right: -150px;
        animation-delay: 0s;
    }

    .shape:nth-child(2) {
        width: 200px;
        height: 200px;
        bottom: -100px;
        left: -100px;
        animation-delay: 2s;
    }

    .shape:nth-child(3) {
        width: 150px;
        height: 150px;
        top: 20%;
        left: -75px;
        animation-delay: 4s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@media (max-width: 576px) {
    .login-card {
        margin: 20px;
        padding: 30px 25px;
    }

    .brand-title {
        font-size: 24px;
    }
}

/* Alert container styles */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.alert {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
