﻿/* Login page styles - Elegant Black & White Theme */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.login-card {
    display: flex;
    max-width: 900px;
    width: 100%;
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.login-image {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.login-form-container {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
}

.login-header {
    margin-bottom: 40px;
    text-align: center;
}

    .login-header h1 {
        font-size: 2.2rem;
        font-weight: 400;
        color: #222;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .login-header p {
        color: #777;
        font-size: 1rem;
    }

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-link {
    margin-left: 15px;
    color: #fff;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

    .login-link:hover {
        color: #ccc;
    }

/* Para pantallas pequeñas */
@media (max-width: 768px) {
    .login-link {
        margin-left: 10px;
    }
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.9rem;
        color: #555;
        font-weight: 500;
    }

.input-with-icon {
    position: relative;
}

    .input-with-icon i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
    }

.form-control {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #999;
        background-color: #fff;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    }

.validation-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin: 10px 0;
    text-align: center;
    min-height: 20px;
}

.text-danger {
    color: #dc3545;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
}

    .btn-login:hover {
        background-color: #333;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .btn-login.loading {
        color: transparent;
    }

        .btn-login.loading:after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            top: 50%;
            left: 50%;
            margin-left: -10px;
            margin-top: -10px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top: 2px solid #fff;
            animation: rotate 1s infinite linear;
        }

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* Input focus and filled states */
.input-with-icon.focused {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

    .input-with-icon.focused i {
        color: #000;
    }

.input-with-icon.filled i {
    color: #666;
}

.input-error {
    border-color: #dc3545 !important;
}

    .input-error + i {
        color: #dc3545 !important;
    }

/* Responsive styles */
@media (max-width: 992px) {
    .login-card {
        flex-direction: column;
        max-width: 500px;
    }

    .login-image {
        height: 200px;
    }

    .login-form-container {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .login-form-container {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 1.8rem;
    }
}
