/* Mobile-first base styles (default for all screen sizes, optimized for mobile) */
.back {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.login-container {
    width: 100%;
    max-width: 440px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2.25rem 1.75rem;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.login-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-image img {
    max-width: 180px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.04));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-image img:hover {
    transform: scale(1.04);
}

.content {
    width: 100%;
}

.content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #212529;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.title-divider {
    border: 0;
    height: 3px;
    background: linear-gradient(to right, #0d6efd, transparent);
    margin: 1rem auto;
    width: 60px;
    border-radius: 2px;
}

.content form {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    font-size: 0.95rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: #0d6efd;
    border: none;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
    background-color: #0b5ed7;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.login-btn:active {
    transform: scale(0.98);
}

/* Tablet & Desktop Layouts (min-width: 768px) */
@media (min-width: 768px) {
    .login-container {
        max-width: 850px;
        padding: 3rem 2.5rem;
    }

    .login-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .login-image {
        flex: 1;
        border-right: 1px solid #e9ecef;
        padding-right: 3rem;
        margin-bottom: 0;
    }

    .login-image img {
        max-width: 320px;
    }

    .content {
        flex: 1.2;
    }

    .content h3 {
        text-align: left;
        font-size: 1.5rem;
    }

    .title-divider {
        margin: 1rem 0;
    }

    .content form {
        margin: 0;
    }
}
