/* Estilos específicos para la página de login */
.login-page {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="90" r="2.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateX(0px); }
    100% { transform: translateX(-100px); }
}

.login-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    display: flex;
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.login-left {
    background: linear-gradient(135deg, #2C7DFA 0%, #1a1a2e 100%);
    color: white;
    padding: 60px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 15s infinite linear reverse;
}

.login-left-content {
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 240px;
    height: auto;
    margin-bottom: 30px;
}

.login-title {
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
}

.login-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 30px;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.login-features li::before {
    content: '✓';
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
}

.login-right {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-title {
    font-size: 2em;
    color: #2d3748;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.login-form-subtitle {
    color: #718096;
    margin-bottom: 40px;
    font-size: 1em;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 500;
    font-size: 0.9em;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #fff;
    color: #2d3748;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #2C7DFA;
    box-shadow: 0 0 0 3px rgba(44, 125, 250, 0.1);
}

.form-control::placeholder {
    color: #a0aec0;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1em;
}

.password-toggle:hover {
    color: #2C7DFA;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9em;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.forgot-password {
    color: #2C7DFA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #1a1a2e;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #2C7DFA 0%, #1a1a2e 100%);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 25px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 125, 250, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: #a0aec0;
    font-size: 0.9em;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.social-login {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.btn-social {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #718096;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.btn-social:hover {
    border-color: #2C7DFA;
    color: #2C7DFA;
    transform: translateY(-2px);
}

.register-link {
    text-align: center;
    color: #718096;
    font-size: 0.95em;
}

.register-link a {
    color: #2C7DFA;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

.back-home {
    position: absolute;
    top: 30px;
    left: 30px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    z-index: 3;
}

.back-home:hover {
    color: rgba(255,255,255,0.8);
    transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        margin: 10px;
    }

    .login-left {
        padding: 40px 30px;
    }

    .login-right {
        padding: 40px 30px;
    }

    .login-title {
        font-size: 2em;
    }

    .social-login {
        flex-direction: column;
    }

    .back-home {
        position: relative;
        top: auto;
        left: auto;
        justify-content: center;
        margin-bottom: 20px;
    }
}

/* Loading state */
.btn-login.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-login.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}